diff options
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); |