From 2adb05255f80f0cacb591dea07d43af3d41f1f38 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 13 Mar 2021 09:12:09 +0200 Subject: Fixed resizing of input dialogs --- src/ui/inputwidget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ui/inputwidget.c') diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index f4302887..27f0217c 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c @@ -123,7 +123,9 @@ static void updateMetrics_InputWidget_(iInputWidget *d) { w->rect.size.y += 2 * gap_UI; #endif invalidateBuffered_InputWidget_(d); - arrange_Widget(w); + if (parent_Widget(w)) { + arrange_Widget(w); + } } void init_InputWidget(iInputWidget *d, size_t maxLen) { -- cgit v1.2.3