diff options
Diffstat (limited to 'src/ui/lookupwidget.c')
-rw-r--r-- | src/ui/lookupwidget.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/lookupwidget.c b/src/ui/lookupwidget.c index c654e3cf..f14170ad 100644 --- a/src/ui/lookupwidget.c +++ b/src/ui/lookupwidget.c | |||
@@ -676,17 +676,19 @@ static iBool processEvent_LookupWidget_(iLookupWidget *d, const SDL_Event *ev) { | |||
676 | max_I2(zero_I2(), | 676 | max_I2(zero_I2(), |
677 | addX_I2(bottomLeft_Rect(bounds_Widget(url)), | 677 | addX_I2(bottomLeft_Rect(bounds_Widget(url)), |
678 | -extraWidth / 2)))); | 678 | -extraWidth / 2)))); |
679 | #if defined(iPlatformAppleMobile) | 679 | #if defined(iPlatformMobile) |
680 | /* TODO: Check this again. */ | 680 | /* TODO: Check this again. */ |
681 | /* Adjust height based on keyboard size. */ { | 681 | /* Adjust height based on keyboard size. */ { |
682 | w->rect.size.y = bottom_Rect(visibleRect_Root(root)) - top_Rect(bounds_Widget(w)); | 682 | w->rect.size.y = bottom_Rect(visibleRect_Root(root)) - top_Rect(bounds_Widget(w)); |
683 | # if defined (iPlatformAppleMobile) | ||
683 | if (deviceType_App() == phone_AppDeviceType) { | 684 | if (deviceType_App() == phone_AppDeviceType) { |
684 | float l, r; | 685 | float l = 0.0f, r = 0.0f; |
685 | safeAreaInsets_iOS(&l, NULL, &r, NULL); | 686 | safeAreaInsets_iOS(&l, NULL, &r, NULL); |
686 | w->rect.size.x = size_Root(root).x - l - r; | 687 | w->rect.size.x = size_Root(root).x - l - r; |
687 | w->rect.pos.x = l; | 688 | w->rect.pos.x = l; |
688 | /* TODO: Need to use windowToLocal_Widget? */ | 689 | /* TODO: Need to use windowToLocal_Widget? */ |
689 | } | 690 | } |
691 | # endif | ||
690 | } | 692 | } |
691 | #endif | 693 | #endif |
692 | arrange_Widget(w); | 694 | arrange_Widget(w); |