mirror of
https://github.com/danbulant/cushy
synced 2026-07-06 11:40:37 +00:00
parent
4e145d7f35
commit
2ad583926b
2 changed files with 12 additions and 4 deletions
12
CHANGELOG.md
12
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
|
- Many bounds required `UnwindSafe` due to a misunderstanding on how to handle
|
||||||
this trait in `appit`. All requirements for `UnwindSafe` have been removed.
|
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)
|
## v0.1.3 (2023-12-19)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
||||||
|
|
@ -765,10 +765,6 @@ where
|
||||||
let _ = layout_context
|
let _ = layout_context
|
||||||
.winit()
|
.winit()
|
||||||
.request_inner_size(PhysicalSize::from(new_size));
|
.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()));
|
self.root.set_layout(Rect::from(render_size.into_signed()));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue