Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #356 from ikeisuke/FixOverviewSizeOnLandscape

[overview] Fix overview height boot on landscape
  • Loading branch information...
commit 1dfb57cf2b9e643f373a58b6eaa14397b38286a8 2 parents ae7b2b4 + e850649
@jverkoey authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/overview/src/NIOverview.m
View
9 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.
Please sign in to comment.
Something went wrong with that request. Please try again.