From 1495d08163a4bfcd5db5f6c3b06f031032c5461f Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 30 Apr 2021 12:17:07 +0300 Subject: 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 --- src/ui/widget.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/widget.h') 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 { }; /* 64-bit extended flags */ -#define wasCollapsed_WidgetFlag iBit64(32) +//#define wasCollapsed_WidgetFlag iBit64(32) +#define disabledWhenHidden_WidgetFlag iBit64(32) #define centerHorizontal_WidgetFlag iBit64(33) #define moveToParentLeftEdge_WidgetFlag iBit64(34) #define moveToParentRightEdge_WidgetFlag iBit64(35) @@ -116,7 +117,6 @@ enum iWidgetFlag { #define parentCannotResizeHeight_WidgetFlag iBit64(58) #define ignoreForParentWidth_WidgetFlag iBit64(59) #define noFadeBackground_WidgetFlag iBit64(60) -#define disabledWhenHidden_WidgetFlag iBit64(61) enum iWidgetAddPos { back_WidgetAddPos, -- cgit v1.2.3