diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2022-08-05 06:30:47 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-05 13:54:18 +0200 |
commit | a808cfa75cb4db406a2ee84659eff7b4938e3835 (patch) | |
tree | ea4f871b58b88a009f4b66d9a8c1767dbd300345 /Userland/Applications/FontEditor | |
parent | 6f2a304971e18f1f4540a69ed793b963e3f89593 (diff) | |
download | serenity-a808cfa75cb4db406a2ee84659eff7b4938e3835.zip |
LibGUI+Applications: Govern Splitter resizing by opportunistic growth
This patch replaces the concept of fixed resizees with opportunistic
ones which use the new SpecialDimension::OpportunisticGrow UISize.
This lets us simplify splitter resize code and take advantage of
the layout system's automatic calculations for minimum size and
expansion. Functionally the same as before, but fixes Splitter's
unintended ability to grow window size.
Diffstat (limited to 'Userland/Applications/FontEditor')
-rw-r--r-- | Userland/Applications/FontEditor/FontEditorWindow.gml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/FontEditor/FontEditorWindow.gml b/Userland/Applications/FontEditor/FontEditorWindow.gml index 27ee7bb8b1..7bbb607049 100644 --- a/Userland/Applications/FontEditor/FontEditorWindow.gml +++ b/Userland/Applications/FontEditor/FontEditorWindow.gml @@ -62,7 +62,7 @@ } @GUI::HorizontalSplitter { - fixed_resizee: "Second" + opportunistic_resizee: "First" @GUI::Widget { layout: @GUI::VerticalBoxLayout {} @@ -217,7 +217,7 @@ @GUI::Widget { name: "unicode_block_container" - fixed_width: 175 + preferred_width: 175 layout: @GUI::VerticalBoxLayout {} @GUI::TextBox { |