CB-4930 - (prefix) InAppBrowser should take into account the status bar
This commit is contained in:
parent
461d9e9c4c
commit
dfd0999581
@ -975,6 +975,20 @@
|
|||||||
|
|
||||||
@implementation CDVInAppBrowserNavigationController : UINavigationController
|
@implementation CDVInAppBrowserNavigationController : UINavigationController
|
||||||
|
|
||||||
|
- (void) viewDidLoad {
|
||||||
|
|
||||||
|
CGRect frame = [UIApplication sharedApplication].statusBarFrame;
|
||||||
|
|
||||||
|
// simplified from: http://stackoverflow.com/a/25669695/219684
|
||||||
|
|
||||||
|
UIToolbar* bgToolbar = [[UIToolbar alloc] initWithFrame:frame];
|
||||||
|
bgToolbar.barStyle = UIBarStyleDefault;
|
||||||
|
[self.view addSubview:bgToolbar];
|
||||||
|
|
||||||
|
[super viewDidLoad];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#pragma mark CDVScreenOrientationDelegate
|
#pragma mark CDVScreenOrientationDelegate
|
||||||
|
|
||||||
- (BOOL)shouldAutorotate
|
- (BOOL)shouldAutorotate
|
||||||
|
Loading…
Reference in New Issue
Block a user