From 3c637b7ca9900ef51b1ccbe0d8ce007aef0714f9 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 12 Jan 2014 23:07:56 +0100 Subject: [PATCH] Update the annotationLayer when using CSS only zoom --- web/page_view.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/page_view.js b/web/page_view.js index 34c7be32a..c67a1953b 100644 --- a/web/page_view.js +++ b/web/page_view.js @@ -184,6 +184,10 @@ var PageView = function pageView(container, id, scale, 'translate(' + transX + ', ' + transY + ')'); CustomStyle.setProp('transformOrigin', textLayerDiv, '0% 0%'); } + + if (USE_ONLY_CSS_ZOOM && this.annotationLayer) { + setupAnnotations(div, this.pdfPage, this.viewport); + } }; Object.defineProperty(this, 'width', {