changeset 1225:458e6c33b972

closed #38: Zoom Area shrinks when using bird's eye view
author hertzhaft
date Thu, 17 Oct 2013 16:04:30 +0200
parents 3e0c37fe6b25
children d9d004f706ef
files webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js	Fri Oct 11 09:34:00 2013 +0200
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.birdseye.js	Thu Oct 17 16:04:30 2013 +0200
@@ -273,6 +273,9 @@
             data.birdTrafo = digilib.fn.getImgTrafo($birdImg, FULL_AREA);
             birdImgRect = geom.rectangle($birdImg);
             birdZoomRect = geom.rectangle($birdZoom);
+            // grow rectangle by border width
+            birdZoomRect.enlarge({x : bw*2, y : bw*2});
+            birdZoomRect.addPosition({x : bw, y : bw});
             newRect = null;
             data.$elem.find('.'+cssPrefix+'overlay').hide(); // hide all overlays (marks/regions)
             $document.on("mousemove.dlBirdMove", birdZoomMove);