Skip to content

Commit ff77acb

Browse files
committed
XFA - Move xfa layer on top of the others (follow-up of mozilla#13706)
1 parent caaf773 commit ff77acb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web/pdf_page_view.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -496,11 +496,6 @@ class PDFPageView {
496496
div.appendChild(textLayerDiv);
497497
}
498498

499-
if (this.xfaLayer?.div) {
500-
// The xfa layer needs to stay on top.
501-
div.appendChild(this.xfaLayer.div);
502-
}
503-
504499
textLayer = this.textLayerFactory.createTextLayerBuilder(
505500
textLayerDiv,
506501
this.id - 1,
@@ -511,6 +506,11 @@ class PDFPageView {
511506
}
512507
this.textLayer = textLayer;
513508

509+
if (this.xfaLayer?.div) {
510+
// The xfa layer needs to stay on top.
511+
div.appendChild(this.xfaLayer.div);
512+
}
513+
514514
let renderContinueCallback = null;
515515
if (this.renderingQueue) {
516516
renderContinueCallback = cont => {

0 commit comments

Comments
 (0)