I have a dynamic section in my form. In that I have two fields. When one is expanded, I would like the other to expand to, using this code:
var newHeight = xfa.layout.h(TextField1, "in");
TextField2.h = newHeight + "in";
The problem is that, when I add a second section dynamically using instance manager, if I take some text of the previous expanded field, the form will not relayout as it should: between the 2 instances of the section I will have an empty space. I put the code on the layout ready event of the field. Without the code, the expand and unexpand will layout the form just fine.