autohidpi icon indicating copy to clipboard operation
autohidpi copied to clipboard

width not always calculated correctly

Open raboof opened this issue 10 years ago • 2 comments

It seems window.screen.availWidth is not only dependent on x (aka layout.css.devPixelsPerPx), but also on the 'manual' (ctrl=-/ctrl==) zoom level.

Not taking that into account leads to not calculating the screen width correctly.

raboof avatar Oct 12 '14 21:10 raboof

Good catch! I tried to get the zoom level to compensate using the answer below but gBrowser becomes undefined whenever I change the zoom level. http://stackoverflow.com/questions/13085635/how-to-zoom-page-using-firefox-addon/13109830#13109830

Unfortunately, I don't have the time to look further but PRs are welcome! :)

ertug avatar Oct 14 '14 20:10 ertug

This is a duplicate of #16 , which is better documented. I'd recommend closing this one.

jasonuher avatar Dec 01 '16 14:12 jasonuher