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);
}

View File

@ -125,7 +125,7 @@ class XfaLayer {
static render(parameters) {
const storage = parameters.annotationStorage;
const root = parameters.xfa;
const intent = parameters.intent;
const intent = parameters.intent || "display";
const rootHtml = document.createElement(root.name);
if (root.attributes) {
this.setAttributes(rootHtml, root);