Permalink
Browse files

[overview] Fix overview height boot on landscape

  • Loading branch information...
1 parent 53cb2b6 commit e850649801d09690d05bf458879dcae1c88243e1 @ikeisuke ikeisuke committed Mar 1, 2013
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/overview/src/NIOverview.m
@@ -162,9 +162,12 @@ + (void)showoverviewAfterRotation {
sOverviewView.center = CGPointMake(CGRectGetMidX(frame), CGRectGetMidY(frame));
CGRect bounds = sOverviewView.bounds;
- bounds.size.width = (UIInterfaceOrientationIsLandscape(NIInterfaceOrientation())
- ? frame.size.height
- : frame.size.width);
+ if (UIInterfaceOrientationIsLandscape(NIInterfaceOrientation())) {
+ bounds.size.width = frame.size.height;
+ bounds.size.height = frame.size.width;
+ } else {
+ bounds.size = frame.size;
+ }
sOverviewView.bounds = bounds;
// Get ready to fade the overview back in.

0 comments on commit e850649

Please sign in to comment.