From 7a0980fd58308f7333254a1276e6dd5072326d98 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 19 Feb 2021 13:15:08 +0200 Subject: iOS: Adjusting the UI for a tablet screen --- src/ui/inputwidget.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui/inputwidget.c') diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 2f0fa064..9b36b057 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c @@ -121,6 +121,9 @@ void init_InputWidget(iInputWidget *d, size_t maxLen) { setMaxLen_InputWidget(d, maxLen); /* 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 += 2 * gap_UI; +#endif setFlags_Widget(w, fixedHeight_WidgetFlag, iTrue); init_Click(&d->click, d, SDL_BUTTON_LEFT); d->timer = 0; -- cgit v1.2.3