Closed
Bug 147521
Opened 22 years ago
Closed 20 years ago
window.innerHeight never reports less than 150px
Categories
(Core :: DOM: Core & HTML, defect)
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.
Reporter | ||
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
I get wndw is undefined on the testcase. Line 7
Reporter | ||
Comment 3•22 years ago
|
||
improved reduced test case (obsoletes #85224) waiting for wndw opening and loading.
Comment 4•22 years ago
|
||
Eh... I still get javascript errors. Check the console
Comment 5•22 years ago
|
||
Sorry, i am an idiot. I had "open unrequested windows" unchecked.
Reporter | ||
Comment 6•22 years ago
|
||
Is there a way to check for this preference ?
Comment 7•22 years ago
|
||
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.
Reporter | ||
Comment 8•22 years ago
|
||
Right. Thanks.
Comment 9•22 years ago
|
||
I see this on Windows as well....
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 10•22 years ago
|
||
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.
Updated•21 years ago
|
Attachment #85224 -
Attachment is obsolete: true
Comment 12•20 years ago
|
||
Why has this bug not been fixed?
Comment 13•20 years ago
|
||
*** Bug 282468 has been marked as a duplicate of this bug. ***
Comment 14•20 years ago
|
||
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?
Comment 15•20 years ago
|
||
WFM with Mozilla 1.8b build 2005021614 on WinNT4.
Comment 16•20 years ago
|
||
Marking as such, please reopen if you can reproduce with a nightly build.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•