autohidpi
autohidpi copied to clipboard
width not always calculated correctly
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.
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! :)
This is a duplicate of #16 , which is better documented. I'd recommend closing this one.