We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ddd75f commit a18a825Copy full SHA for a18a825
ECSlidingViewController/Vendor/ECSlidingViewController/ECSlidingViewController.m
@@ -531,7 +531,16 @@ - (CGRect)fullViewBounds
531
statusBarHeight = [UIApplication sharedApplication].statusBarFrame.size.width;
532
}
533
534
- CGRect bounds = self.view.bounds;
+
535
+ CGRect bounds = [UIScreen mainScreen].bounds;
536
537
+ if (UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) {
538
+ CGFloat height = bounds.size.width;
539
+ CGFloat width = bounds.size.height;
540
+ bounds.size.height = height;
541
+ bounds.size.width = width;
542
+ }
543
544
bounds.origin.y += statusBarHeight;
545
bounds.size.height -= statusBarHeight;
546
0 commit comments