Skip to content

Commit c93ea1e

Browse files
committed
Undo component info change (base should be -1 for preferred size)
1 parent baa2b97 commit c93ea1e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/layout/flex_layout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace fensterserver
7070
Component* child = ref.component;
7171
FlexInfo flex = flexInfo[child];
7272

73-
int basis = (flex.basis > 0)
73+
int basis = (flex.basis >= 0)
7474
? flex.basis
7575
: (horizontal
7676
? child->getEffectivePreferredSize().width

server/src/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ namespace fensterserver {
478478
panel->setLayout(panelLayout);
479479

480480
auto colorSection = new Panel();
481-
panelLayout->setComponentInfo(colorSection, 0, 1, 0);
481+
panelLayout->setComponentInfo(colorSection, 0, 1, -1);
482482
{
483483
colorSection->setLayout(new StackLayout(10));
484484

0 commit comments

Comments
 (0)