Open Bug 369915 Opened 17 years ago Updated 2 years ago

[windows] when layout.css.dpi set to 300, browser is scaled huge / zoomed

Categories

(Core :: General, defect)

x86
All
defect

Tracking

()

People

(Reporter: moco, Unassigned)

References

()

Details

Attachments

(1 file)

[windows] when layout.css.dpi set to 300, browser is scaled huge / zoomed

from http://weblogs.mozillazine.org/roc/archives/2007/02/units_patch_lan.html

The number of device pixels per CSS pixel. This is device dependent and depends on the device DPI. For devices up to 144 DPI, the value is 1. For 144 up to 240 DPI, the value is 2, and so on, increasing by 1 every 96 DPI. This means that effectively on a 144-240 DPI device, everything is specified by CSS pixels is scaled up by a factor of 2.

what I was seeing was definitely more than 3x.

fwiw, I stumbled on this because I had layou.css.dpi set to 300 from back during fx 2 theme work, working on bug #350686 and bug #350194

prior to the landing of bug #177805, did that pref have no effect on windows?
I compared the height of the address bar and an image in the content area at three settings for l.c.dpi (100, 200, 300 - restarting minefield with each switch).  And as expected they both grew to be 2x and 3x their normal size.  So I don't see a problem.  This is with windows set at the normal 96 dpi.  

On a related note when windows is at 96 dpi and l.c.dpi is at 200 the tooltips in the sidebars don't work correctly.  If you hover over an item you might get no tooltip or another node's tooltip.  But when windows is set to a higher dpi then the tootltips work fine is that a bug?  
> what I was seeing was definitely more than 3x.

You sure?  That would be odd.

> fwiw, I stumbled on this because I had layou.css.dpi set to 300 from back
> during fx 2 theme work, working on bug #350686 and bug #350194
> 
> prior to the landing of bug #177805, did that pref have no effect on windows?

That's correct; the Windows code ignored the pref.

> On a related note when windows is at 96 dpi and l.c.dpi is at 200 the tooltips
> in the sidebars don't work correctly.  If you hover over an item you might get
> no tooltip or another node's tooltip.  But when windows is set to a higher dpi
> then the tootltips work fine is that a bug?  

If tooltips aren't working correctly in some situations, that's most likely a bug.
Happens with SM trunk 2007062901 and FF trunk 2007062904 on Linux starting at 144 DPI.
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → general
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: