11-28-2008 08:41 AM
But, when i try to read it in v4.6.0 Blackberry simulator, these properties don't exist (window.innerWidth undefined).
Does these properties really exist ?
I would like to position an iframe in the upper right corner of the browser display area. I set iframe position to fixed.
How could i know the browser display area height and width ?
11-28-2008 09:16 AM
12-04-2008 10:52 AM
11-02-2009 02:34 PM
Its fine and good that this works in 4.7, but what can we do in 4.6? screen.availHeight isn't usable here because it does NOT exclude the "banners".
The space consumed by the banner(s) depends on the OS version and is also controlled by a user setting (they can toggle it by using the "u" shortcut). This is made worse in the AT&T build (v18.104.22.1687 platform 22.214.171.124) because the MediaNet browser includes a "ATT" bar on the bottom where the Hotspot browser does NOT - so we can't even use navigator.userAgent to determine the right hard coded value.
11-02-2009 03:38 PM
Let me fine tune this a bit.
undefined in v126.96.36.1997 platform 188.8.131.52 (on Bold) BUT
defined in v184.108.40.206 platform 220.127.116.11 (on Curve).
The Curve also correctly excludes the "banner" from the height.
11-03-2009 03:57 PM
The Tour (18.104.22.168 platform 22.214.171.124) also correctly excludes the banners from window.innerHeight.
Of the phones that concern us only the Bold includes the banners in the height calculations. Other than hard coding for the presence of the banners is there a workable solution for the Bold running 4.6?