From ab10c23969bb7d7be73613d50ae2a3755da39fb0 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 17 May 2021 18:17:13 +0300 Subject: Mobile: Preferences on tablet devices Use the mobile layout on tablets as well. --- src/ui/inputwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/inputwidget.c') diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index fc843371..3b72cc60 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c @@ -306,7 +306,7 @@ static void updateMetrics_InputWidget_(iInputWidget *d) { iWidget *w = as_Widget(d); updateSizeForFixedLength_InputWidget_(d); /* Caller must arrange the width, but the height is fixed. */ - w->rect.size.y = contentHeight_InputWidget_(d, iTrue) + 3 * padding_().y; /* TODO: Why 3x? */ + w->rect.size.y = contentHeight_InputWidget_(d, iTrue) + 3.0f * padding_().y; /* TODO: Why 3x? */ if (flags_Widget(w) & extraPadding_WidgetFlag) { w->rect.size.y += 2 * gap_UI; } -- cgit v1.2.3