Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[overview] Fix overview height boot on landscape

  • Loading branch information...
commit e850649801d09690d05bf458879dcae1c88243e1 1 parent 53cb2b6
Keisuke Isono ikeisuke authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/overview/src/NIOverview.m
9 src/overview/src/NIOverview.m
View
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.