mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Don't try to place the xfaLayer
"on top" in regular PDF documents
Given that we only create an `xfaLayer` in "pure" XFA-documents, this code can be moved into the appropriate branch instead.
This commit is contained in:
parent
546902df63
commit
3c66b031e3
1 changed files with 3 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue