Auto height for sections
InfoPath forms are all about being dynamic, so it's important that the sections in your form grow and shrink appropriately. For example, if someone deletes an optional section from inside another section, the outer section should shrink accordingly.
Of course, sections will grow/shrink by default after you insert them, but InfoPath will change it to a fixed size if you resize the section, since we don't want to disobey your command to be a specific size. So in the example above, the outer section will stay the same size even when the Notes section isn't there -- it will just have a bunch of white space in its place.
The trick: Use "auto"
If you resized a section by accident and want to return it to the default, just open its properties, switch to the "Size" tab, and type auto for the height. Now it will only be as big as it needs to be and never bigger.
- Ned
Comments
Anonymous
March 16, 2008
PingBack from http://boxingcarsblog.info/infopath-team-blog-auto-height-for-sections/Anonymous
March 22, 2008
PingBack from http://carsmaxblog.info/infopath-team-blog-auto-height-for-sections/Anonymous
June 07, 2009
PingBack from http://greenteafatburner.info/story.php?id=3705Anonymous
January 26, 2012
The comment has been removedAnonymous
September 01, 2015
I have a form with hidden sections that worked fine, up until a few days ago. My problem is I have made all my hidden sections either in auto or with 0 padding & margins and I still get a large chunk of white space before it shows the bottom section that used to be displayed as it used to. Not sure how to correct it or why is it displaying all that white space. Help!