...

View Full Version : IE8 window resize and scroll bar



kberry
12-23-2011, 02:52 AM
Hi,

When I use the following code snippet in all major browsers (Chrome, FF, Safari, Opera, IE8), the window opens with a scroll bar and it is resizeable EXCEPT IN IE8. In IE8, there's no vertical scroll bar and it's not resizeable... any idea why not?

window.open('http://www.mysite.shtml?' + report_vars, '', "status=no, toolbar=no, location=yes, menubar=no, scrollbars=yes, alwaysRaised=yes, resizable=yes, width=" + window.outerWidth / 1.1 + ", height=" + window.outerHeight-0.1);

Thanks for reading!

~ kberry

Kor
12-23-2011, 09:01 AM
window.outerHeight-0.1

IE does not like floated values of the pixels. In fact IE is right, as a pixel can not be split in fractions :) Nor do I understand: why do you need to subtract 0.1 pixels from a height? What's the use?

kberry
12-28-2011, 11:05 PM
Oh! I am actually trying to say: 90% (0.9) of the normal window size.

Logic Ali
12-28-2011, 11:20 PM
Oh! I am actually trying to say: 90% (0.9) of the normal window size.

Try window.outerHeight * 0.9



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum