Closed DropsOfSerenity closed 9 years ago
Actually, your demo site works you just need to deploy with grunt deploy
so that dist is actually collected into demo/dist/
see: http://dropsofserenity.github.io/angular-image-zoom/ for my changes deployed
@DropsOfSerenity nice work. will merge
In deeply nested html structure the lens was not being positioned correctly. In order to fix this getOffset just needed to traverse up the offsetParent tree and add the offsets until it reaches the top.
While I was at it, I fixed your demo site as well :) Since grunt had
demo/
anddist/
as roots,dist/image-zoom.js
was not resolving.