diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-06 10:52:37 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-06 10:52:37 +0200 |
commit | 7fa64b95d0c63b243f50b23c5551a7e04fe90c30 (patch) | |
tree | c77ce6a28fc48e9409bfd7afd674604bfb82d006 /src/ui/inputwidget.c | |
parent | 24afe73aae2cedfb43345f014c601539161dded6 (diff) |
Mobile: Dialog styling for phones
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r-- | src/ui/inputwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 267ccdf7..3f178fc5 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -117,8 +117,8 @@ static void invalidateBuffered_InputWidget_(iInputWidget *d) { | |||
117 | static void updateMetrics_InputWidget_(iInputWidget *d) { | 117 | static void updateMetrics_InputWidget_(iInputWidget *d) { |
118 | iWidget *w = as_Widget(d); | 118 | iWidget *w = as_Widget(d); |
119 | /* Caller must arrange the width, but the height is fixed. */ | 119 | /* Caller must arrange the width, but the height is fixed. */ |
120 | w->rect.size.y = lineHeight_Text(default_FontId) + 2 * gap_UI; | 120 | w->rect.size.y = lineHeight_Text(d->font) * 1.3f; |
121 | #if defined (iPlatformAppleMobile) | 121 | #if defined (iPlatformMobile) |
122 | w->rect.size.y += 2 * gap_UI; | 122 | w->rect.size.y += 2 * gap_UI; |
123 | #endif | 123 | #endif |
124 | invalidateBuffered_InputWidget_(d); | 124 | invalidateBuffered_InputWidget_(d); |