summaryrefslogtreecommitdiff
path: root/src/ui/lookupwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/lookupwidget.c')
-rw-r--r--src/ui/lookupwidget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/lookupwidget.c b/src/ui/lookupwidget.c
index e57a5fdc..da0113ce 100644
--- a/src/ui/lookupwidget.c
+++ b/src/ui/lookupwidget.c
@@ -665,8 +665,9 @@ static iBool processEvent_LookupWidget_(iLookupWidget *d, const SDL_Event *ev) {
665 (bottom_Rect(rect_Root(root)) - bottom_Rect(navBarBounds)) / 2)); 665 (bottom_Rect(rect_Root(root)) - bottom_Rect(navBarBounds)) / 2));
666 setPos_Widget(w, windowToLocal_Widget(w, bottomLeft_Rect(bounds_Widget(url)))); 666 setPos_Widget(w, windowToLocal_Widget(w, bottomLeft_Rect(bounds_Widget(url))));
667#if defined (iPlatformAppleMobile) 667#if defined (iPlatformAppleMobile)
668 /* TODO: Check this again. */
668 /* Adjust height based on keyboard size. */ { 669 /* Adjust height based on keyboard size. */ {
669 w->rect.size.y = visibleSize_Root(root).y - top_Rect(bounds_Widget(w)); 670 w->rect.size.y = bottom_Rect(visibleRect_Root(root)) - top_Rect(bounds_Widget(w));
670 if (deviceType_App() == phone_AppDeviceType) { 671 if (deviceType_App() == phone_AppDeviceType) {
671 float l, r; 672 float l, r;
672 safeAreaInsets_iOS(&l, NULL, &r, NULL); 673 safeAreaInsets_iOS(&l, NULL, &r, NULL);