mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
XFA - Elements under an area must be bound (bug 1723734)
- aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1723734.
This commit is contained in:
parent
849bab973c
commit
328383ea7a
2 changed files with 39 additions and 0 deletions
|
@ -503,6 +503,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);
|
||||
|
@ -2869,6 +2873,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 {
|
||||
|
@ -5166,6 +5175,10 @@ class SubformSet extends XFAObject {
|
|||
}
|
||||
return parent;
|
||||
}
|
||||
|
||||
[$isBindable]() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
class SubjectDN extends ContentObject {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue