summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-17 18:17:13 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-17 18:17:13 +0300
commitab10c23969bb7d7be73613d50ae2a3755da39fb0 (patch)
treea9c13a233d76d9ac19ce1e6a771e8e9c6e8466ec /src/ui/inputwidget.c
parent42ac51ac631ce111324aaa8cba4659af0489da7b (diff)
Mobile: Preferences on tablet devices
Use the mobile layout on tablets as well.
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r--src/ui/inputwidget.c2
1 files changed, 1 insertions, 1 deletions
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) {
306 iWidget *w = as_Widget(d); 306 iWidget *w = as_Widget(d);
307 updateSizeForFixedLength_InputWidget_(d); 307 updateSizeForFixedLength_InputWidget_(d);
308 /* Caller must arrange the width, but the height is fixed. */ 308 /* Caller must arrange the width, but the height is fixed. */
309 w->rect.size.y = contentHeight_InputWidget_(d, iTrue) + 3 * padding_().y; /* TODO: Why 3x? */ 309 w->rect.size.y = contentHeight_InputWidget_(d, iTrue) + 3.0f * padding_().y; /* TODO: Why 3x? */
310 if (flags_Widget(w) & extraPadding_WidgetFlag) { 310 if (flags_Widget(w) & extraPadding_WidgetFlag) {
311 w->rect.size.y += 2 * gap_UI; 311 w->rect.size.y += 2 * gap_UI;
312 } 312 }