diff --git a/sao/src/view/form.js b/sao/src/view/form.js index 76b4c7906d3..8ff3ec38e1e 100644 --- a/sao/src/view/form.js +++ b/sao/src/view/form.js @@ -546,7 +546,13 @@ function eval_pyson(value){ var xfill = attributes.xfill; if (xfill === undefined) xfill = 1; var xexpand = attributes.xexpand; - if (xexpand === undefined) xexpand = 1; + if ((attributes.invisible === "1") || + ((attributes.states !== undefined) && + (JSON.parse(attributes.states).invisible === true))) { + xexpand = 0; + } else if (xexpand === undefined) { + xexpand = 1; + } // CSS grid elements are 1-indexed if (this.col > 0) {