https://bugzilla.wikimedia.org/show_bug.cgi?id=40140

       Web browser: ---
             Bug #: 40140
           Summary: High-density (HiDPI/Retina) toolbar icons don't
                    display if window opened on low-res screen, then moved
                    to high-res
           Product: VisualEditor
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: User Interface
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Broken out from bug 37849: window.devicePixelRatio is checked when loading
stuff, and then either a stylesheet for 1.0x PNGs or one using scalable SVGs
gets loaded depending on the ratio.

This leads to being stuck with the 1.0x PNGs if you started editing on a
low-resolution screen, then moved the window (or detached an external monitor)
and moved it to a high-resolution screen.

Per bug 37849 comment 9 there are probably two ways to fix this:

1) Detect resolution changes (window.onresize?) and switch the stylesheet based
on the updated window.devicePixelRatio

or

2) Always use SVG icon set if SVG is supported in the browser.

Note that Firefox doesn't yet support window.devicePixelRatio, but it's about
to come in in nightlies, before actual HiDPI support for Mac OS X :) --
https://bugzilla.mozilla.org/show_bug.cgi?id=564815

IE 10 doesn't support window.devicePixelRatio at all, which is a bit annoying
although it does support SVG and high-resolution screens eg on Windows 8. We
can leave that as a corner case for the moment, though use of SVG at all
resolutions would conveniently work around it.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to