Hi,

I'm currently having JavaScript issues with Chrome not returning
consistent values for the inner dimensions of a popup window,
depending on how the page is loaded.

To explain further, I'm opening a new popup using window.open and then
in the onload of the body I have the following JavaScript:

    window.moveTo(0,0);
    window.resizeTo(screen.availWidth, screen.availHeight);
    var innerWinHeight = window.innerHeight + 0;
    var innerWinWidth = window.innerWidth + 0;
    alert(innerWinWidth+':'+innerWinHeight);

When the popup window initially loads, I'm getting "900:700" alerted.
If I refresh the popup window by pressing F5, I get "1264:708" alerted
(this is for a screen resolution of 1280x800).

I've tried using document.body.clientWidth/clientHeight and
document.documentElement.clientWidth/clientHeight as well, in place of
window.innerWidth/innerHeight, to no avail, I get the same values and
the same discrepancy in values, between when the popup window
initially loads and when I reload the popup window using F5.

Anyone have any idea why this is so and what could be done to fix it,
if anything?

Cheers for any help.

-- 
Chromium Discussion mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-discuss

Reply via email to