Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phonegap screen size off by height of status bar?

One of the pages in my phonegap app is bigger than the screen by exactly the height of the status bar at the top of the screen (this is on Android, on a Google Nexus)... I can disable scrolling (with the touchmove event), but it still hangs off the bottom of the screen... I could fix that by using a fixed height, but then I would need to know the height of the screen and status bar...

I'm OK with making my app fullscreen, but when I tried setting that in my manifest the status bar didn't actually go away (though, phonegap's browser did actually shift up... it no longer hung off the bottom, but was then obscured on the top!)...

like image 787
dicroce Avatar asked Nov 28 '25 23:11

dicroce


1 Answers

Remove from your html meta data this:

<meta name="viewport" content="height=device-height"/>

That made your app full-screen, instead of fullscreen minus statusbar.

like image 145
JOM Avatar answered Dec 01 '25 16:12

JOM