magnifier icon indicating copy to clipboard operation
magnifier copied to clipboard

Magnified image is not larger than the original + is not centered

Open PolarisTLX opened this issue 6 years ago • 0 comments

Great project you have here! I am trying to use it but I am having 2 small issues:

  1. The image in the magnifier is smaller than the image it is supposed to be magnifying. Is there a setting to adjust how much it zooms/scales? I have been trying to work with something like this (but it doesn't seem to have an effect):
let magnifiedImage = Array.from(document.getElementsByClassName("magnifier"))[0];
magnifiedImage.backgroundSize = "475px 724px;"
  1. The image in the magnifier is not centered over the main image (it is slightly lower and to the left). Trying to toy with the top and left but not quite working.

Any advice on fixing these two things? Thank you very much!

PolarisTLX avatar Dec 20 '18 18:12 PolarisTLX