Merge pull request #16056 from Snuffleupagus/xfaLayer-on-top

Don't try to place the `xfaLayer` "on top" in regular PDF documents
This commit is contained in:
Tim van der Meij 2023-02-19 12:22:10 +01:00 committed by GitHub
commit 255e982542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -863,11 +863,6 @@ class PDFPageView {
});
}
if (this.xfaLayer?.div) {
// The xfa layer needs to stay on top.
div.append(this.xfaLayer.div);
}
let renderContinueCallback = null;
if (this.renderingQueue) {
renderContinueCallback = cont => {
@ -967,6 +962,9 @@ class PDFPageView {
annotationStorage,
linkService,
});
} else if (this.xfaLayer.div) {
// The xfa layer needs to stay on top.
div.append(this.xfaLayer.div);
}
this.#renderXfaLayer();
}