Open Bug 547427 Opened 14 years ago Updated 2 years ago

Wrong result of screen.availWidth

Categories

(Firefox :: General, defect)

3.6 Branch
x86
Windows XP
defect

Tracking

()

UNCONFIRMED

People

(Reporter: davy, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729) Creative ZENcast v1.04.06
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729) Creative ZENcast v1.04.06

My Screen-resolution is set on 1024*768. In my site did I ask about the available width of the users screen by using the javascript $width=screen.availWidth and if this is <1024 the become a messages that the site works better by using a screenwidth from minimal 1024. But I become also that message. I did control it and the result of screen.availWidht is 922.

Reproducible: Always

Steps to Reproduce:
1.Set your screen-resolution on 1024*768
2.open my site http://www.davidbrouwer.nl 
3.you become the message
4.You can see in the left column the result of screen.availWidth 


Expected Results:  
No message
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.2pre) Gecko/20100217 Namoroka/3.6.2pre

This works fine for me. Maybe you're seeing Bug 62395 ?
Version: unspecified → 3.6 Branch
Till version
(In reply to comment #1)
> Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.2pre) Gecko/20100217
> Namoroka/3.6.2pre
> 
> This works fine for me. Maybe you're seeing Bug 62395 ?

I had also no problems till version 3.6
Till Firefox/3.6 no problems with the screen size.
(In reply to comment #1)
> Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.2pre) Gecko/20100217
> Namoroka/3.6.2pre

I tested this with Windows XP, the rest of the useragent string was correct.
I know now what the problem is!

In Firefox is it possible to zoom Ctrl++ or Ctrl+-. If You use the zoom then change it the width and hight of the screen and is the result of screen.AvailWidth not the width that you has set by the screen settings. If you in Firefox used Ctrl+0
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.