You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When toolbarposition=top on ios, the body was covered by the webview at the top, it's the default behavior of this plugin.
Then I found this pull request, change the rePositionViews function would sove this problem, but it leads to a new one.
On iphoneX, the webview is out of the screen at the bottom, it seems the webview is 20px higher than it should be.
So, I cut the webview's height, [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])];, but it leaves 20px grey area at the bottom, the webview is 20px shorter than it should be.
Could it be [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] + STATUSBAR_HEIGHT)];, because the viewbounds height is subtracted by STATUSBAR_HEIGHT in viewWillApear? It looks pretty good!
The text was updated successfully, but these errors were encountered:
When
toolbarposition=top
on ios, the body was covered by the webview at the top, it's the default behavior of this plugin.Then I found this pull request, change the
rePositionViews
function would sove this problem, but it leads to a new one.On iphoneX, the webview is out of the screen at the bottom, it seems the webview is 20px higher than it should be.
So, I cut the webview's height,
[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])];
, but it leaves 20px grey area at the bottom, the webview is 20px shorter than it should be.Could it be
[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] + STATUSBAR_HEIGHT)];
, because the viewbounds height is subtracted bySTATUSBAR_HEIGHT
inviewWillApear
? It looks pretty good!The text was updated successfully, but these errors were encountered: