Closed Bug 273484 Opened 20 years ago Closed 20 years ago

screen.width does not change in a function when you change the resolution of the screen

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 62395

People

(Reporter: ruturaj_v, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

screen.width does not change in a function when you change the resolution of the
screen

consider you have a function get_size where you have the following var x =
screen.width;
the value of x does not change after changing the resolution of the screen.

Reproducible: Always
Steps to Reproduce:
1.write a function to check the screen.width and check width
2.change the resolution of scren
3. now check the screen.width
Actual Results:  
initally it shows 800
I change resolution to 1024 and still it shows 800
However in the javascipt console you evaluate screen.width it shows 1024

Expected Results:  
the new resolution width

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