Skip to content

Commit

Permalink
[ios8] - another native keyboard fix which slipped through when compi…
Browse files Browse the repository at this point in the history
…ling with our old sdk on jenkins
  • Loading branch information
Memphiz committed Oct 26, 2014
1 parent e766a09 commit 677786b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/osx/ios/IOSKeyboardView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 677786b

Please sign in to comment.