jaukia / zoomooz

An easy-to-use jQuery plugin for making zooming web pages.
http://janne.aukia.com/zoomooz/
1.79k stars 275 forks source link

ZoomTo() zooming to an odd region of the page? #86

Open jrgoodner opened 10 years ago

jrgoodner commented 10 years ago

Hi Jaukia, your plugin is excellent! I'm having some trouble with the final position of the zoomed element, and I was wondering if you had an idea what was causing it to act this way.

http://wearetak.com/mount_eden/latest/chart_demo/vintage_chart.php

In the page above, clicking on any of the small numbers should result in a zoomTo() where the

  • element that contains the number is centered within the viewport.

    screen shot 2013-12-18 at 5 41 08 pm

    However, that doesn't seem to be happening (in OSX 10.8 Chrome)! I've enabled debug mode, and the red corners of the element are positioned differently from the corners that Chrome dev tools calculates. Here is the zoom result:

    screen shot 2013-12-18 at 5 49 05 pm

    The li element is actually far off center. Anyone know why this is happening??

    Thanks VERY much for any help!

    Best, Jared