summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r--src/ui/inputwidget.c4
1 files changed, 3 insertions, 1 deletions
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) {
123 w->rect.size.y += 2 * gap_UI; 123 w->rect.size.y += 2 * gap_UI;
124#endif 124#endif
125 invalidateBuffered_InputWidget_(d); 125 invalidateBuffered_InputWidget_(d);
126 arrange_Widget(w); 126 if (parent_Widget(w)) {
127 arrange_Widget(w);
128 }
127} 129}
128 130
129void init_InputWidget(iInputWidget *d, size_t maxLen) { 131void init_InputWidget(iInputWidget *d, size_t maxLen) {