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:
commit
2f2e539bc6
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user