We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caaf773 commit ff77acbCopy full SHA for ff77acb
web/pdf_page_view.js
@@ -496,11 +496,6 @@ class PDFPageView {
496
div.appendChild(textLayerDiv);
497
}
498
499
- if (this.xfaLayer?.div) {
500
- // The xfa layer needs to stay on top.
501
- div.appendChild(this.xfaLayer.div);
502
- }
503
-
504
textLayer = this.textLayerFactory.createTextLayerBuilder(
505
textLayerDiv,
506
this.id - 1,
@@ -511,6 +506,11 @@ class PDFPageView {
511
512
507
this.textLayer = textLayer;
513
508
509
+ if (this.xfaLayer?.div) {
510
+ // The xfa layer needs to stay on top.
+ div.appendChild(this.xfaLayer.div);
+ }
+
514
let renderContinueCallback = null;
515
if (this.renderingQueue) {
516
renderContinueCallback = cont => {
0 commit comments