Disabled automatic window growing

Closes #92
This commit is contained in:
Jonathan Johnson 2023-12-20 11:40:23 -08:00
parent 4e145d7f35
commit 2ad583926b
No known key found for this signature in database
GPG key ID: A66D6A34D6620579
2 changed files with 12 additions and 4 deletions

View file

@ -12,6 +12,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Many bounds required `UnwindSafe` due to a misunderstanding on how to handle
this trait in `appit`. All requirements for `UnwindSafe` have been removed.
### Changed
- [#92][92]: When a Window is resizable and the root widget's `layout()`
function returns a size larger than the window's inner size, the window will
no longer be resized to fit. The content will be forced to render in the given
space, which may result in clipping.
Using a `Resize` widget in the root hierarchy allows setting minimum width and
heights for the content.
[92]: https://github.com/khonsulabs/gooey/issues/92
## v0.1.3 (2023-12-19)
### Added

View file

@ -765,10 +765,6 @@ where
let _ = layout_context
.winit()
.request_inner_size(PhysicalSize::from(new_size));
} else if render_size != actual_size && resizable {
let _ = layout_context
.winit()
.request_inner_size(PhysicalSize::from(actual_size));
}
self.root.set_layout(Rect::from(render_size.into_signed()));