jaukia/zoomooz

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

Opened this issue · 0 comments

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