1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

XFA - Center vertically radio without caption

- and fix intent value which is used to name the radio button group.
This commit is contained in:
Calixte Denizet 2021-06-11 13:24:38 +02:00
parent 7b4fa0a038
commit da4916e3c1
2 changed files with 3 additions and 1 deletions

View file

@ -2391,6 +2391,8 @@ class Field extends XFAObject {
const caption = this.caption ? this.caption[$toHTML]().html : null;
if (!caption) {
// Even if no caption this class will help to center the ui.
ui.attributes.class.push("xfaLeft");
return HTMLResult.success(createWrapper(this, html), bbox);
}