summaryrefslogtreecommitdiff
path: root/src/ios.m
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-14 15:09:54 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-14 15:09:54 +0300
commit21b16be87fec3ec163fb52b94619ba5f3b5df6d2 (patch)
tree73df8c1469f9d7f4186b40ea7b8d34c5b6dfd7bf /src/ios.m
parent7f737f1b88448a8a2ccca716a09e3b37fb0c08f9 (diff)
Mobile and iOS: Various fixes and cleanup
Several regressions occurred when the split view mode was implemented.
Diffstat (limited to 'src/ios.m')
-rw-r--r--src/ios.m2
1 files changed, 1 insertions, 1 deletions
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<NSURL *> *)urls {
196 CGRect keyboardFrame = [view convertRect:rawFrame fromView:nil]; 196 CGRect keyboardFrame = [view convertRect:rawFrame fromView:nil];
197// NSLog(@"keyboardFrame: %@", NSStringFromCGRect(keyboardFrame)); 197// NSLog(@"keyboardFrame: %@", NSStringFromCGRect(keyboardFrame));
198 iWindow *window = get_Window(); 198 iWindow *window = get_Window();
199 const iInt2 rootSize = rootSize_Window(window); 199 const iInt2 rootSize = size_Root(window->roots[0]);
200 const int keyTop = keyboardFrame.origin.y * window->pixelRatio; 200 const int keyTop = keyboardFrame.origin.y * window->pixelRatio;
201 setKeyboardHeight_Window(window, rootSize.y - keyTop); 201 setKeyboardHeight_Window(window, rootSize.y - keyTop);
202} 202}