1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #13881 from calixteman/bug_1723734

XFA - Elements under an area must be bound (bug 1723734)
This commit is contained in:
Brendan Dahl 2021-08-06 11:56:58 -07:00 committed by GitHub
commit 3d18c76a53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View file

@ -539,6 +539,10 @@ class Area extends XFAObject {
return true;
}
[$isBindable]() {
return true;
}
[$addHTML](html, bbox) {
const [x, y, w, h] = bbox;
this[$extra].width = Math.max(this[$extra].width, x + w);
@ -2896,6 +2900,11 @@ class Field extends XFAObject {
}
if (value) {
if (this.ui.numericEdit) {
value = parseFloat(value);
value = isNaN(value) ? "" : value.toString();
}
if (ui.children[0].name === "textarea") {
ui.children[0].attributes.textContent = value;
} else {
@ -5190,6 +5199,10 @@ class SubformSet extends XFAObject {
}
return parent;
}
[$isBindable]() {
return true;
}
}
class SubjectDN extends ContentObject {