cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-9214) [StatusBar][iOS] Landscape webview height is calculated wrong after StatusBar.hide();
Date Tue, 28 Jul 2015 17:47:04 GMT


ASF GitHub Bot commented on CB-9214:

Github user asfgit closed the pull request at:

> [StatusBar][iOS] Landscape webview height is calculated wrong after StatusBar.hide();
> -------------------------------------------------------------------------------------
>                 Key: CB-9214
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Statusbar
>    Affects Versions: 5.0.0
>         Environment: cordova-lib@5.1.1
> cordova-ios@3.8.0
> apache-plugin-statusbar@1.0.0
> iOS@8.3
>            Reporter: Mark van Beek
> Using an iPad (screen size: 1024x768 in landscape) I noticed that the button bar I put
at the bottom of the screen was not there. Looking for the cause (since it works in the browser),
I started looking at the height reported by the html tag (css: width: 100%; height: 100%).
Here it showed that the size was 1024x1772, meaning the size of the viewport was actually
1024x1772 (instead of 1024x768). After a lot of trail and error, googling and such, I came
across an old issue ( which gave me the idea
to change the FullScreen & StatusBarOverlaysWebView from false to true and finally the
issue disappeared.
> Since 1772 == 768 + 1024 - 20, it seems like the computation for the remaining height
for the webview when the statusbar is not overlayed goes wrong (at least in landscape mode)...
> STR:
> 1. Create a blank project
> 2. Add status bar plugin
> 3. Add this preference <preference name="StatusBarOverlaysWebView" value="false" />
> 4. Use StatusBar.hide(); when the device is on landscape

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message