diff --git a/CHANGELOG.md b/CHANGELOG.md index c631309..4877548 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/window.rs b/src/window.rs index cbec139..5eda6f4 100644 --- a/src/window.rs +++ b/src/window.rs @@ -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()));