phonegap-build / StatusBarPlugin

PhoneGap Build Plugin providing some customizations to the iOS status bar
https://build.phonegap.com/plugins/304
92 stars 46 forks source link

Viewport issue on iphone 4 inches #19

Closed kirkas closed 10 years ago

kirkas commented 10 years ago

Viewport is wrong on iphone 4 inche since i've added this plugin. As you can see the window height return 656px instead to the correct 568px.

screen shot 2014-02-14 at 08 57 27

billstremor commented 10 years ago

I'm having the exact same issue with the plugin. viewport is reporting 656 tall.

billstremor commented 10 years ago

Is there a fix or viable workaround for this?

kirkas commented 10 years ago

Changing the viewport meta to:

<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />

work for me

orenagiv commented 10 years ago

I can confirm that using "height=device-height" does solve the issue, but only AFTER Cordova is ready. And there's still the bug that if you start the App in Landscape mode - then half the screen is white (at least while using PGB 3.3): https://github.com/phonegap-build/StatusBarPlugin/issues/4

Hope that will be solved soon.

wildabeast commented 10 years ago

Try the latest version (1.1.0) of this plugin -- it should fix this issue.

orenagiv commented 10 years ago

Awesome!!! I can confirm it's working perfectly now :)

Many thanks!

wildabeast commented 10 years ago

Cool thanks. Closing.

orenagiv commented 10 years ago

Ehh... Sorry about that.. but I noticed something new which might be related: If you show the status-bar and the hide it - the screen size increases in around 20 pixels in width and height. If you show and hide it again - it will increase in another 20 pixels.

Shall I open a separate issue for this one?

wildabeast commented 10 years ago

Ugh yes please open a new one.

orenagiv commented 10 years ago

Opened: https://github.com/phonegap-build/StatusBarPlugin/issues/21