Closed Bug 147521 Opened 22 years ago Closed 19 years ago

window.innerHeight never reports less than 150px

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows ME
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: martin.jacobs, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files, 1 obsolete file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.0rc3) Gecko/20020523
BuildID:    2002052306
screen resolution is 800x600 

When opening or resizing a window with less than 150px innerheight,
window.innerHeight property always reports 150px.  
Outer dimensions (outerHeight, outerWidth) are OK.  
(besides innerWidth can't shrink to less than 104px)  

attaching reduced test case 

Reproducible: Always
Steps to Reproduce:
1. open an empty window with "innerHeight=100,innerWidth=100"
   window.innerHeight is 150px (wrong)
2. resize it to (100,100) 
   window.innerHeight reports 150px too
3. resize to (200,200) 
   window.innerHeight is 172 (correct) 

Actual Results:  see attached test case 

Expected Results:  window dimensions from 100px to 150px are allowed and this
property should give actual measurement.
Attached file reduced test case (obsolete) —
I get wndw is undefined on the testcase. Line 7
Attached file improved test case
improved reduced test case (obsoletes #85224) 
waiting for wndw opening and loading.
Eh... I still get javascript errors. Check the console
Sorry, i am an idiot. I had "open unrequested windows" unchecked.
Is there a way to check for this preference ?   
Not w/o trying to open a window, but if you try to open a window and
window.open() returns null, then you'll know that opening windows is not allowed
in the client.
Right. Thanks. 
I see this on Windows as well....
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file varying window sizes
This test is more self-explanatory.  (obsoletes #85247) 
Change height and/or width manually to get inner/outer values.	
OnResize event is buggy too below 150px height.  
Click on 'get sizes' to refresh outerHeight.
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
Attachment #85224 - Attachment is obsolete: true
Keywords: testcase
Why has this bug not been fixed?
*** Bug 282468 has been marked as a duplicate of this bug. ***
WFM: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050216
Firefox/1.0+

Can anyone verify that this work on trunk?
WFM with Mozilla 1.8b build 2005021614 on WinNT4.
Marking as such, please reopen if you can reproduce with a nightly build.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: