mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Better auto-sizing of windows
This commit is contained in:
@@ -74,8 +74,10 @@ impl Resize {
|
||||
self
|
||||
}
|
||||
|
||||
/// Not resizable, just takes the size of its contents.
|
||||
pub fn auto_sized(self) -> Self {
|
||||
self.resizable(false)
|
||||
self.default_size(Vec2::splat(f32::INFINITY))
|
||||
.resizable(false)
|
||||
.auto_shrink_width(true)
|
||||
.auto_expand_width(true)
|
||||
.auto_shrink_height(true)
|
||||
|
||||
Reference in New Issue
Block a user