You can grow or shrink sections, according to what a user sees in a form that is based on your form template. Using sections is a great way to group related controls together to help a user efficiently fill out a form. However, if you show or hide sections according to different conditions, such as a section that should be visible to a manager but not to an employee, the form might display some unwanted extra space for hidden sections or even overlap visible sections.
If your form template contains sections that appear only under certain conditions, Microsoft InfoPath Team Blog: Auto height for sections contains a great tip that you can follow to make more space or to remove the extra space that's caused by showing or hiding sections.
For more information about working with sections, see the following articles:
We make continual improvements to Office Online based on feedback we get from customers like you. If this article was helpful to you, please let us know by voting under the Was this information helpful section at the bottom of this article. If it wasn’t helpful, we’d like to know that, too. (The more detailed you can be about your issue, the better.)