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:
parent
6f2a304971
commit
a808cfa75c
5 changed files with 29 additions and 57 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
@GUI::TabWidget {
|
||||
name: "tab_widget"
|
||||
fixed_width: 200
|
||||
preferred_width: 200
|
||||
container_margins: [6]
|
||||
|
||||
@GUI::TreeView {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue