From 7fa64b95d0c63b243f50b23c5551a7e04fe90c30 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 6 Mar 2021 10:52:37 +0200 Subject: Mobile: Dialog styling for phones --- src/ui/inputwidget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/inputwidget.c') 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) { static void updateMetrics_InputWidget_(iInputWidget *d) { iWidget *w = as_Widget(d); /* Caller must arrange the width, but the height is fixed. */ - w->rect.size.y = lineHeight_Text(default_FontId) + 2 * gap_UI; -#if defined (iPlatformAppleMobile) + w->rect.size.y = lineHeight_Text(d->font) * 1.3f; +#if defined (iPlatformMobile) w->rect.size.y += 2 * gap_UI; #endif invalidateBuffered_InputWidget_(d); -- cgit v1.2.3