diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-14 15:09:54 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-14 15:09:54 +0300 |
commit | 21b16be87fec3ec163fb52b94619ba5f3b5df6d2 (patch) | |
tree | 73df8c1469f9d7f4186b40ea7b8d34c5b6dfd7bf /src/ios.m | |
parent | 7f737f1b88448a8a2ccca716a09e3b37fb0c08f9 (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.m | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | } |