Closed
Bug 211441
Opened 21 years ago
Closed 21 years ago
javascript/DOM does not pick up on changes to screen.width & screen.height when screen resolution is changed
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: mozilla, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 on Windows 2000, did a javascript:alert(screen.width + ' ' + screen.height); before and after changing the resolution of the screen. javascript did not pick up on the new size. Reproducible: Always Steps to Reproduce: 1. run javascript:alert(screen.width + ' ' + screen.height); 2. note what you are told 3. change the screen resolution 4. again, run javascript:alert(screen.width + ' ' + screen.height); 5. note values are the same - they should be different!
Comment 1•21 years ago
|
||
*** This bug has been marked as a duplicate of 62395 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
this is not a duplicate of <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=62395">62395</a> - I am talking about when the screen resolution is changed when mozilla is running. it is a kludge (http://www.cnam.fr/Jargon/jargon.html?1007) to require users to restart Mozilla after screen resolution has been changed. Other apps on Windows are intelligent enough to trap the appropriate Windows message and react accordingly. So should Mozilla.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Comment 3•21 years ago
|
||
Ken, you said: > this is not a duplicate of bug 62395 - I am talking about when the screen > resolution is changed when mozilla is running. Unless I missed something obvious in bug 62395, that bug is about exactly that problem. Duping again, if you still think this is not a dupe, then please explain exactly why it isn't. *** This bug has been marked as a duplicate of 62395 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → DUPLICATE
Mozilla/Javascript does not display/retrieve the correct screen.height and screen.width values after the screen resolution has been changed while Mozilla is running. Example: 1 Start Mozilla with screen resolution set to 1280x1040 2 Display the screen.width and screen.height values with javascript:alert(screen.width + ' ' + screen.height); ("1280 1040" displayed in alert box). 3 Change the screen resolution to 1024x768 4 Display the screen.width and screen.height values with javascript:alert(screen.width + ' ' + screen.height); ("1280 1040" displayed in alert box). Note "1280 1040" is still displayed - it should be "1024 768". The correct values are displayed only if I do step 4 in a new window, created after step 3 has been done. I certainly shouldn't have to restart Mozilla. you should be trapping for the the system message that signifies a change in screen resolution and updating the screen object's property values afterwards.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Comment 5•21 years ago
|
||
Ken, that is exactly the same problem that bug 62395 is about, I don't see a difference in what you're describing and what bug 62395 is about. See bug 62395, comment #2, for an explanation on exactly what the problem with Mozilla is, once that's fixed, then this will be fixed too. Duping again, if you still think that this is not a dupe, then reopen again, but explain why this is different than bug 62395. *** This bug has been marked as a duplicate of 62395 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•