Merge pull request #8561 from Snuffleupagus/zoomLayer-canvas-hidden

Don't use a hidden canvas when constructing the `zoomLayer` in `PDFPageView.update`
This commit is contained in:
Tim van der Meij 2017-06-22 23:51:21 +02:00 committed by GitHub
commit 2f2e539bc6

View File

@ -230,7 +230,7 @@ class PDFPageView {
}); });
return; return;
} }
if (!this.zoomLayer) { if (!this.zoomLayer && !this.canvas.hasAttribute('hidden')) {
this.zoomLayer = this.canvas.parentNode; this.zoomLayer = this.canvas.parentNode;
this.zoomLayer.style.position = 'absolute'; this.zoomLayer.style.position = 'absolute';
} }