Skip to content

Commit

Permalink
Merge pull request #8561 from Snuffleupagus/zoomLayer-canvas-hidden
Browse files Browse the repository at this point in the history
Don't use a hidden canvas when constructing the `zoomLayer` in `PDFPageView.update`
  • Loading branch information
timvandermeij authored Jun 22, 2017
2 parents c6ee05f + 426e26c commit 2f2e539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/pdf_page_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class PDFPageView {
});
return;
}
if (!this.zoomLayer) {
if (!this.zoomLayer && !this.canvas.hasAttribute('hidden')) {
this.zoomLayer = this.canvas.parentNode;
this.zoomLayer.style.position = 'absolute';
}
Expand Down

0 comments on commit 2f2e539

Please sign in to comment.