diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-13 07:42:26 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-13 07:42:26 +0300 |
commit | 61ce76bde91aaa6a5267e88577e10115f9627e5f (patch) | |
tree | 5b1c7c98580c7109d9a6862e72a671a43b4554d5 /src/ui/widget.c | |
parent | fab098d5701a55fd4a0b3fb74ae332797e3be377 (diff) |
Toggle sidebar visibility; save width and mode
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index 2a889683..07f1f17d 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -149,13 +149,13 @@ static int widestChild_Widget_(const iWidget *d) { | |||
149 | } | 149 | } |
150 | 150 | ||
151 | static void setWidth_Widget_(iWidget *d, int width) { | 151 | static void setWidth_Widget_(iWidget *d, int width) { |
152 | if (~d->flags & fixedWidth_WidgetFlag) { | 152 | if (~d->flags & fixedWidth_WidgetFlag || d->flags & collapse_WidgetFlag) { |
153 | d->rect.size.x = width; | 153 | d->rect.size.x = width; |
154 | } | 154 | } |
155 | } | 155 | } |
156 | 156 | ||
157 | static void setHeight_Widget_(iWidget *d, int height) { | 157 | static void setHeight_Widget_(iWidget *d, int height) { |
158 | if (~d->flags & fixedHeight_WidgetFlag) { | 158 | if (~d->flags & fixedHeight_WidgetFlag || d->flags & collapse_WidgetFlag) { |
159 | d->rect.size.y = height; | 159 | d->rect.size.y = height; |
160 | } | 160 | } |
161 | } | 161 | } |