diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-30 12:17:07 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-30 12:17:07 +0300 |
commit | 1495d08163a4bfcd5db5f6c3b06f031032c5461f (patch) | |
tree | 7538e5ca6f054afd292ca9c4b7b7ff81a3d1222f /src/ui/widget.h | |
parent | fed2b149aeb5c5cd692421602e0fe77ceffb8b28 (diff) |
Revising and fixing widget layout
Some of the logic for arranging widgets was invalid, leading to problems with the navbar:
- cannot resize children if own size depends on their size
- expanding children won't expand unless resizing all children
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index c3c9609e..36797210 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -87,7 +87,8 @@ enum iWidgetFlag { | |||
87 | }; | 87 | }; |
88 | 88 | ||
89 | /* 64-bit extended flags */ | 89 | /* 64-bit extended flags */ |
90 | #define wasCollapsed_WidgetFlag iBit64(32) | 90 | //#define wasCollapsed_WidgetFlag iBit64(32) |
91 | #define disabledWhenHidden_WidgetFlag iBit64(32) | ||
91 | #define centerHorizontal_WidgetFlag iBit64(33) | 92 | #define centerHorizontal_WidgetFlag iBit64(33) |
92 | #define moveToParentLeftEdge_WidgetFlag iBit64(34) | 93 | #define moveToParentLeftEdge_WidgetFlag iBit64(34) |
93 | #define moveToParentRightEdge_WidgetFlag iBit64(35) | 94 | #define moveToParentRightEdge_WidgetFlag iBit64(35) |
@@ -116,7 +117,6 @@ enum iWidgetFlag { | |||
116 | #define parentCannotResizeHeight_WidgetFlag iBit64(58) | 117 | #define parentCannotResizeHeight_WidgetFlag iBit64(58) |
117 | #define ignoreForParentWidth_WidgetFlag iBit64(59) | 118 | #define ignoreForParentWidth_WidgetFlag iBit64(59) |
118 | #define noFadeBackground_WidgetFlag iBit64(60) | 119 | #define noFadeBackground_WidgetFlag iBit64(60) |
119 | #define disabledWhenHidden_WidgetFlag iBit64(61) | ||
120 | 120 | ||
121 | enum iWidgetAddPos { | 121 | enum iWidgetAddPos { |
122 | back_WidgetAddPos, | 122 | back_WidgetAddPos, |