summaryrefslogtreecommitdiff
path: root/src/ui/labelwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-18 12:34:29 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-18 12:34:29 +0300
commit462e5085392eb78610e9b991ed295f0168a079bb (patch)
treedd9c062d15f3b11f8470c887603fb9e1aecdf468 /src/ui/labelwidget.c
parentca13d25e1e3dc1b2b7ea865866e9e4a5785f26d1 (diff)
Mobile: Tablet tweaks
Heights of InputWidget vs. LabelWidget. The default sizes should be equal, e.g., so the navbar elements align properly. Don't set the input focus automatically when opening a dialog, since the keyboard may cover much of the UI.
Diffstat (limited to 'src/ui/labelwidget.c')
-rw-r--r--src/ui/labelwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index c20be28a..ed023961 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -66,7 +66,7 @@ static iInt2 padding_LabelWidget_(const iLabelWidget *d, int corner) {
66#if defined (iPlatformAppleMobile) 66#if defined (iPlatformAppleMobile)
67 return add_I2(widgetPad, 67 return add_I2(widgetPad,
68 init_I2(flags & tight_WidgetFlag ? 2 * gap_UI : (4 * gap_UI), 68 init_I2(flags & tight_WidgetFlag ? 2 * gap_UI : (4 * gap_UI),
69 (flags & extraPadding_WidgetFlag ? 1.5f : 1) * 3 * gap_UI / 2)); 69 (flags & extraPadding_WidgetFlag ? 1.5f : 1.0f) * 3 * gap_UI / 2));
70#else 70#else
71 return add_I2(widgetPad, 71 return add_I2(widgetPad,
72 init_I2(flags & tight_WidgetFlag ? 3 * gap_UI / 2 : (3 * gap_UI), 72 init_I2(flags & tight_WidgetFlag ? 3 * gap_UI / 2 : (3 * gap_UI),