Merge pull request #13710 from calixteman/13706_f_up

XFA - Move xfa layer on top of the others (follow-up of #13706)
This commit is contained in:
calixteman 2021-07-09 22:00:25 +02:00 committed by GitHub
commit f7cb8b4bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -496,11 +496,6 @@ class PDFPageView {
div.appendChild(textLayerDiv); div.appendChild(textLayerDiv);
} }
if (this.xfaLayer?.div) {
// The xfa layer needs to stay on top.
div.appendChild(this.xfaLayer.div);
}
textLayer = this.textLayerFactory.createTextLayerBuilder( textLayer = this.textLayerFactory.createTextLayerBuilder(
textLayerDiv, textLayerDiv,
this.id - 1, this.id - 1,
@ -511,6 +506,11 @@ class PDFPageView {
} }
this.textLayer = textLayer; this.textLayer = textLayer;
if (this.xfaLayer?.div) {
// The xfa layer needs to stay on top.
div.appendChild(this.xfaLayer.div);
}
let renderContinueCallback = null; let renderContinueCallback = null;
if (this.renderingQueue) { if (this.renderingQueue) {
renderContinueCallback = cont => { renderContinueCallback = cont => {