-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CB-14024 Take into account statusbar height when toolbar is enabled #265
Conversation
This PR worked on my device(ver. iOS 11.3) |
The travis failure is a timeout, which seems like it wouldn't be related to this PR. |
Forked and pulled in this PR. It does indeed push the content below the status bar but it also cuts off the content at the bottom by the same amount. You should also subtract the webview height by the status bar height to prevent it. Something like:
|
I tested this PR with @hvaughan3's changes. Works beautifully. The Travis CI build fails on Android platform?? This can be ignored in my opinion as there are no changes for android. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @hvaughan3 suggested, use this line to consider location bar:
[self.webView setFrame:CGRectMake(self.webView.frame.origin.x, TOOLBAR_HEIGHT + [self getStatusBarOffset], self.webView.frame.size.width, self.webView.frame.size.height - [self getStatusBarOffset])];
Hey, I just fixed the problem that caused Android tests to fail in |
Closing to retrigger CI. |
On iphoneX for for Could it be |
It worked! |
Any update on this? I needed to edit CDVWKInAppBrowser.m in the rePositionViews method, to add That is, this line of code:
should instead be:
|
Platforms affected
ios
What does this PR do?
Solves the problem with the webs that are not shown properly when toolbar is enabled on top:
this.browser.create(element.url, '_blank',"toolbar=yes,toolbarposition=top");
What testing has been done on this change?
It was tested on ios devices using the above configuration
Checklist