blackberry/WebWorks-TabletOS — Issue #42: viewport device-height incorrect in landscape orientation
Author: rtholmes
Created: 2011-11-09 16:35:23+00:00
State: open

I have a webworks app that has only a single line different between the build for the TabletOS and for the smartphone platforms.

TabletOS:

SmartPhone:

The only difference between the two is that the TabletOS doesn't have the 'height=device-height' argument.

This argument is required on the smartphone (at least for my app) as without it only the top 6px of the screen are used. The argument works fine on the tablet, as long as you open your app in portrait mode. If you open it in landscape mode though the device-height value doesn't update to the landscape height and instead sets the viewport height to the portrait height (or landscape width).