Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-23-2011, 01:52 AM   PM User | #1
kberry
New Coder

 
Join Date: Jun 2011
Posts: 80
Thanks: 13
Thanked 0 Times in 0 Posts
kberry is an unknown quantity at this point
IE8 window resize and scroll bar

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
kberry is offline   Reply With Quote
Old 12-23-2011, 08:01 AM   PM User | #2
Kor
Red Devil Mod


 
Kor's Avatar
 
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
Kor has a spectacular aura aboutKor has a spectacular aura about
Code:
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?
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kor is offline   Reply With Quote
Old 12-28-2011, 10:05 PM   PM User | #3
kberry
New Coder

 
Join Date: Jun 2011
Posts: 80
Thanks: 13
Thanked 0 Times in 0 Posts
kberry is an unknown quantity at this point
Oh! I am actually trying to say: 90% (0.9) of the normal window size.
kberry is offline   Reply With Quote
Old 12-28-2011, 10:20 PM   PM User | #4
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 961
Thanks: 0
Thanked 198 Times in 193 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
Quote:
Originally Posted by kberry View Post
Oh! I am actually trying to say: 90% (0.9) of the normal window size.
Try window.outerHeight * 0.9
Logic Ali is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:28 AM.


Advertisement
Log in to turn off these ads.