jasadams / imagezoom

Image Zoom addon for Firefox
14 stars 12 forks source link

Right click always sets width/height styling #23

Open megamurmulis opened 9 years ago

megamurmulis commented 9 years ago

Problem:

Currently - when right clicking on image, then releasing mouse - will always set style="width:...px; height:...px" (even when not using any functions). This happens no matter what keys are assigned or even when mouse functions disabled completely..

This can be bit annoying when working with firebug (right-click -> inspect) = as will add new (width/height) styling that sometimes overrides existing image's inline styling...

Solution: It would be preferable not to add w/h style until any imagezoom function is used...

jasadams commented 9 years ago

thanks, I think this is a good suggestion, I'll take a look and see how hard it is to implement

fireattack commented 9 years ago

It's not only "annoying" in firebug, it actually ruins visiting expierence of some sites under certain conditions. For example, I encountered a site using css padding for image element. and when you right click image, its demension is changed (to a wrong one) due to this issue.

I reproduced this problem here: http://plaza.ufl.edu/bpeng/abc.htm (just right click it and you will see the problem).

Still, it's a great add-on and thanks for your hard work.