[Pkg-javascript-commits] [pdf.js] 128/174: Ensure that the `textLayer` has the same dimensions as the `canvasWrapper` (issue 6596)
David Prévot
taffit at moszumanska.debian.org
Thu Nov 19 18:45:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit dbc611ac9de7e26d42fe6cf2a709bce5cccd6e79
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Fri Nov 6 12:43:22 2015 +0100
Ensure that the `textLayer` has the same dimensions as the `canvasWrapper` (issue 6596)
This is a quick fix to get `scrollIntoView` working again for search results, but we really ought to re-write that function since it seems way too brittle.
Fixes 6596.
---
web/pdf_page_view.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/pdf_page_view.js b/web/pdf_page_view.js
index d65c17f..598c3d9 100644
--- a/web/pdf_page_view.js
+++ b/web/pdf_page_view.js
@@ -351,8 +351,8 @@ var PDFPageView = (function PDFPageViewClosure() {
if (this.textLayerFactory) {
textLayerDiv = document.createElement('div');
textLayerDiv.className = 'textLayer';
- textLayerDiv.style.width = canvas.style.width;
- textLayerDiv.style.height = canvas.style.height;
+ textLayerDiv.style.width = canvasWrapper.style.width;
+ textLayerDiv.style.height = canvasWrapper.style.height;
if (this.annotationLayer && this.annotationLayer.div) {
// annotationLayer needs to stay on top
div.insertBefore(textLayerDiv, this.annotationLayer.div);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list