PDA

View Full Version : Android Full Screen Broken when including phonegap.js 1.2



phil.fuse
16 Dec 2011, 3:05 PM
Perhaps one for the phonegap people but i thought i'd ask if anyone has seen this behaviour.

When i package and include the phonegap.js and install it on an Android device then the app stretches vertically below the available screen height on every one of my Android devices (HTC desire, Galaxy I & II) ....

The main sencha component is set to fullscreen.

The same build works fine when wrapped to iOS and fine on both OS's if i remove the phonegap.js and just wrap it as a standalone website without phonegap additions on the device...

I'm running sencha touch 1.1 and phonegap 1.2

??

phil.fuse
16 Dec 2011, 3:53 PM
this took me too many hours to figure...
i added the values...
...width=device-width,height=device-height ...
in the meta viewport...
example pg code comes with the width set to a standard 320 but i'd hazard that setting to actual device is preferable?

It only breaking when actually including the javascript pg.js sent me on quite the goose chase...
ah well...
hope this helps...