Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoomed page breaks measuring #7

Open
myfonj opened this issue Sep 11, 2014 · 8 comments
Open

Zoomed page breaks measuring #7

myfonj opened this issue Sep 11, 2014 · 8 comments

Comments

@myfonj
Copy link

myfonj commented Sep 11, 2014

With non 100% page zoom: indicators are offset and seemingly broken.

Screenshot of measuring on https://github.com/mrflix/dimensions with 110% zoom:
110-percent-zoom

@mrflix
Copy link
Owner

mrflix commented Sep 12, 2014

Hey myfonj, thanks for reporting. Several people already noted that. Yes, Dimensions is broken when in zoom-mode. I don't quite understand why people would want to measure things while zoomed in, but I'll look into it.

@mrflix mrflix added this to the Version 1.1 milestone Sep 12, 2014
@battaglr
Copy link

@myfonj: just wondering, what would be the use case for measuring things when the zoom has been modified?

@myfonj
Copy link
Author

myfonj commented Sep 16, 2014

tl;dr: modifying page zoom should be legitimate action that should not have
any negative consequences.

I agree that this might be just a border case and it may seem weird, but I
can give you my own userstory: I have my Chrome set so it's implicit "Page
zoom" is 110% to correct it's wonky tiny text display on my 10.1" display
with 1368×768 physical resolution even with 125% system zoom. I'm not
visually impaired, I just prefer larger texts.

I suspect Chrome does not obey system zoom or has some other issue. And I
suspect that the fact things become broken depending on seemingly innocent
setting (implicit page zoom), which developers should not worry about (ie
this extension should work regardless of the page zoom, because dimensions
that this extension measures are essentially virtual pixels, not physical
screen dimensions), is mark of some nasty flaw in current Chrome. This is
not the first quirk I spotted with this setting. Recently I've encountered
this in PrismJS/prism#336 .

Do you find this argument valid?

@battaglr
Copy link

@myfonj: I'm not the dev to say if it's a valid argument to include or take care of this use-case. Anyhow, IMHO when developing you don't really need to measure things with the zoom altered. I mean, it's fine to test and play with the zoom to see if everything work as expected, but if you're off by couple of pixels shouldn't be a big deal. Again, my opinion; I could be wrong... and usually I am. :P

@mrflix
Copy link
Owner

mrflix commented Oct 17, 2014

Okay so I found time to look deeper into this. Unfortunately Chrome only just now starts to implement the API's to detect zoom changes and get the zoom value (see Chrome Developer Docs). They will be available in Chrome version 38 which is not yet out.

If I implement it now I have to do a lot of if(chrome.version >= 38) which I don't want to have in the code. Thus I'd postpone this some time until version 38 is out and has enough traction.

@mrflix mrflix removed this from the Version 1.1 milestone Oct 17, 2014
@vipera7
Copy link

vipera7 commented Jan 16, 2020

@mrflix Any news since ?

@martinszeltins
Copy link

@mrflix well it is 2022 now, maybe this zoom thing can be fixed.

@mrflix
Copy link
Owner

mrflix commented Nov 1, 2022

@martinszeltins do you want to take a shot at coding a fix yourself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants