]> _ Git - fluidbook-html5.git/commitdiff
#811
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 25 Aug 2017 18:25:02 +0000 (20:25 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 25 Aug 2017 18:25:02 +0000 (20:25 +0200)
js/libs/fluidbook/fluidbook.search.js

index ef7fc2689143e3861faf4b62d7d65d4c88fbf8b0..b5d1829eae1175b923440c73eee94caed57ab4cd 100644 (file)
@@ -200,7 +200,7 @@ FluidbookSearch.prototype = {
         }
 
         var padding = position.height * 0.2;
-        var z = this.fluidbook.datas.pageZoomFactor * 1.19;
+        var z = this.fluidbook.datas.cssScale;
         var h = $('<div class="highlight" data-color="' + color + '"></div>');
         var coords = {top: (position.y - position.height - padding * 2) * z, left: (position.x - padding) * z + offset, width: (width + 2 * padding) * z, height: (position.height + padding * 3) * z};
         var hash = coords.top + '|' + coords.left + '|' + coords.width + '|' + coords.height;