XFA - Move xfa layer on top of the others (follow-up of #13706)

This commit is contained in:
Calixte Denizet 2021-07-09 20:58:19 +02:00
parent caaf77375f
commit ff77acb357

View File

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