From 677786b79a24960ef4d2ff59a96580c9b6f3dcef Mon Sep 17 00:00:00 2001 From: Memphiz Date: Sun, 26 Oct 2014 18:06:38 +0100 Subject: [PATCH] [ios8] - another native keyboard fix which slipped through when compiling with our old sdk on jenkins --- xbmc/osx/ios/IOSKeyboardView.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xbmc/osx/ios/IOSKeyboardView.mm b/xbmc/osx/ios/IOSKeyboardView.mm index 2553981e7dd51..fc4066fc42cfc 100644 --- a/xbmc/osx/ios/IOSKeyboardView.mm +++ b/xbmc/osx/ios/IOSKeyboardView.mm @@ -132,6 +132,10 @@ - (void)layoutSubviews -(void)keyboardWillShow:(NSNotification *) notification{ NSDictionary* info = [notification userInfo]; CGRect kbRect = [[info objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue]; +#if !__IPHONE_8_0 + if (GetIOSVersion() >= 8.0) + kbRect = [self convertRect:kbRect fromView:nil]; +#endif LOG(@"keyboardWillShow: keyboard frame: %@", NSStringFromCGRect(kbRect)); _kbRect = kbRect; [self setNeedsLayout];