mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-03-17 04:51:03 +08:00
removed silly copy/paste mistakes
removed silly copy/paste mistakes
This commit is contained in:
parent
145fad6764
commit
986516cf97
@ -179,7 +179,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
|||||||
- (CGRect) invertFrameIfNeeded:(CGRect)rect orientation:(UIInterfaceOrientation)orientation {
|
- (CGRect) invertFrameIfNeeded:(CGRect)rect orientation:(UIInterfaceOrientation)orientation {
|
||||||
// landscape is where (width > height). On iOS < 8, we need to invert since frames are
|
// landscape is where (width > height). On iOS < 8, we need to invert since frames are
|
||||||
// always in Portrait context
|
// always in Portrait context
|
||||||
if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation]) && (rect.size.width < rect.size.height) && (rect.size.width < rect.size.height) ) {
|
if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation]) && (rect.size.width < rect.size.height)) {
|
||||||
CGFloat temp = rect.size.width;
|
CGFloat temp = rect.size.width;
|
||||||
rect.size.width = rect.size.height;
|
rect.size.width = rect.size.height;
|
||||||
rect.size.height = temp;
|
rect.size.height = temp;
|
||||||
@ -201,7 +201,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
|||||||
if (statusBarOverlaysWebView) {
|
if (statusBarOverlaysWebView) {
|
||||||
|
|
||||||
[_statusBarBackgroundView removeFromSuperview];
|
[_statusBarBackgroundView removeFromSuperview];
|
||||||
if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation]) && (rect.size.width < rect.size.height)) {
|
if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) {
|
||||||
self.webView.frame = CGRectMake(0, 0, bounds.size.height, bounds.size.width);
|
self.webView.frame = CGRectMake(0, 0, bounds.size.height, bounds.size.width);
|
||||||
} else {
|
} else {
|
||||||
self.webView.frame = bounds;
|
self.webView.frame = bounds;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user