XFA - Center vertically radio without caption
- and fix intent value which is used to name the radio button group.
This commit is contained in:
parent
7b4fa0a038
commit
da4916e3c1
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user