equal
deleted
inserted
replaced
34 return theScale; |
34 return theScale; |
35 } |
35 } |
36 |
36 |
37 -(CGRect) safeBounds { |
37 -(CGRect) safeBounds { |
38 CGRect original = [self bounds]; |
38 CGRect original = [self bounds]; |
39 if (IS_IPAD() && |
39 if (IS_IPAD() && UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation])) |
40 ([[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPortrait || |
|
41 [[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPortraitUpsideDown) ) { |
|
42 return original; |
40 return original; |
43 } else |
41 else |
44 return CGRectMake(original.origin.x, original.origin.y, original.size.height, original.size.width); |
42 return CGRectMake(original.origin.x, original.origin.y, original.size.height, original.size.width); |
45 } |
43 } |
46 |
44 |
47 @end |
45 @end |
48 |
46 |