Closed Bug 182991 Opened 22 years ago Closed 22 years ago

Properties of 'screen' object in javascript does not update when screen resolution change (remain old values)

Categories

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

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 62395

People

(Reporter: ans, Assigned: jst)

Details

Attachments

(1 file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 5.0; Windows 98)
Build Identifier: 

When we change resolution of screen - changes does not reflects in properties
of 'screen' object, accessed from javascript.

Reproducible: Always

Steps to Reproduce:
1. Set resolution 1024x768, start mozilla
2. in html page, get some property ( max_y = screen.height; alert( max_y ); ),
   this will show you '768'
3. Set resolution to any other (i.e. 800x600)
4. Repeat step 2 - and see '768' instead of '600'

Actual Results:  
768

Expected Results:  
600

Why do not look for screen parameters any time user requested it?
Attached file Testcase

*** This bug has been marked as a duplicate of 62395 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: