we have a form that has some sections that have show if... rules.
However, when the section is not visible it is still included in the layout (because it has padding and/or borders). Composer had some flags to use for "exclude from layout if caption blank".
Does Maestro have a similar option?
If not, I think that the Dynamic Class rule might be suitable. So, I am wondering if I can use dynamic class to add a class to the component when it is hidden, so that it is excluded from the layout (display: none;).
Is this a workable solution?
How do I implement this?
Are you putting your visibility rule on the Section object itself?
I've included a Section with borders and padding in a test form and hidden it with a visibility rule, and it doesn't affect the layout.
Agree, the Show if rule should not leave anything in the layout when it is not visible.
thanks for the comment. That is the behaviour that I was expecting.
I have investigated a bit further to understand the form structure (I didn't build all of the form) and have found that there is a block inside the section. So the visibility rules have not been applied correctly based on the structure. I think the form has been through a few changes and there has been some loss of detail along the way (too many cooks...).
Now that I have confirmation of the expected behaviour and a better understanding of the form structure I can arrange things correctly to achieve the desired outcome.
Your comments, and Ben's comment made me think more broadly.