Permalink
Browse files

Issue #28 - Fixed orientation bug where the textfield could move too …

…far on focus
  • Loading branch information...
1 parent a76c9aa commit 3facd5def6b3d8e17d70cfdab5f5e57c12738069 @pec1985 committed Sep 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 Classes/TiSmsviewView.m
View
@@ -83,8 +83,8 @@ -(NSInteger)keyboardHeight:(NSNotification *)val
NSDictionary* info = [val userInfo];
NSValue* aValue = [info objectForKey:UIKeyboardFrameEndUserInfoKey];
CGSize keyboardSize = [aValue CGRectValue].size;
-
- if ([[UIDevice currentDevice] orientation] == UIDeviceOrientationPortrait || [[UIDevice currentDevice] orientation] == UIDeviceOrientationPortraitUpsideDown)
+ if ([[UIApplication sharedApplication]statusBarOrientation] == UIDeviceOrientationPortrait ||
+ [[UIApplication sharedApplication]statusBarOrientation] == UIDeviceOrientationPortraitUpsideDown)
return keyboardSize.height;
else
return keyboardSize.width;

0 comments on commit 3facd5d

Please sign in to comment.