1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

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.
This commit is contained in:
thankyouverycool 2022-08-05 06:30:47 -04:00 committed by Andreas Kling
parent 6f2a304971
commit a808cfa75c
5 changed files with 29 additions and 57 deletions

View file

@ -17,7 +17,7 @@
@GUI::TabWidget {
name: "tab_widget"
fixed_width: 200
preferred_width: 200
container_margins: [6]
@GUI::TreeView {