diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/labelwidget.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c index 44ed795b..7ee7bfc8 100644 --- a/src/ui/labelwidget.c +++ b/src/ui/labelwidget.c | |||
@@ -404,7 +404,9 @@ void updateSize_LabelWidget(iLabelWidget *d) { | |||
404 | iWidget *w = as_Widget(d); | 404 | iWidget *w = as_Widget(d); |
405 | const int64_t flags = flags_Widget(w); | 405 | const int64_t flags = flags_Widget(w); |
406 | const iInt2 size = defaultSize_LabelWidget(d); | 406 | const iInt2 size = defaultSize_LabelWidget(d); |
407 | w->minSize.y = size.y; /* vertically text must remain visible */ | 407 | if (!d->flags.noAutoMinHeight) { |
408 | w->minSize.y = size.y; /* vertically text must remain visible */ | ||
409 | } | ||
408 | /* Wrapped text implies that width must be defined by arrangement. */ | 410 | /* Wrapped text implies that width must be defined by arrangement. */ |
409 | if (!(flags & (fixedWidth_WidgetFlag | wrapText_WidgetFlag))) { | 411 | if (!(flags & (fixedWidth_WidgetFlag | wrapText_WidgetFlag))) { |
410 | w->rect.size.x = size.x; | 412 | w->rect.size.x = size.x; |