From 21b16be87fec3ec163fb52b94619ba5f3b5df6d2 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 14 May 2021 15:09:54 +0300 Subject: Mobile and iOS: Various fixes and cleanup Several regressions occurred when the split view mode was implemented. --- src/ios.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ios.m') diff --git a/src/ios.m b/src/ios.m index 6e2fa64b..7f2751e0 100644 --- a/src/ios.m +++ b/src/ios.m @@ -196,7 +196,7 @@ didPickDocumentsAtURLs:(NSArray *)urls { CGRect keyboardFrame = [view convertRect:rawFrame fromView:nil]; // NSLog(@"keyboardFrame: %@", NSStringFromCGRect(keyboardFrame)); iWindow *window = get_Window(); - const iInt2 rootSize = rootSize_Window(window); + const iInt2 rootSize = size_Root(window->roots[0]); const int keyTop = keyboardFrame.origin.y * window->pixelRatio; setKeyboardHeight_Window(window, rootSize.y - keyTop); } -- cgit v1.2.3