I am trying to present information about an object grouped by sections. It can be long, so each section uses a view to visually separate the areas, and all this is in scroll mode.
The first view has a text box that resizes to fit the text, and its parent view also resizes to fit the text box.
The second view has a pivot table for displaying data. I want all the data in the table to be displayed and there is no scrolling of the table.
There is more information in the third review, but its contents are an empty representation for the purposes of this demonstration. In a real application, I can add an arbitrary number of custom subqueries.
What I find is that the first subview resizes accordingly, but I cannot find a combination of layout constraints that will make the second size of the subview suitable for the table and shift the third view down.
What do I need to do so that the scroll view matches its contents when the contents of the subtitle can change? The table view fills the available space in the parent view, but the parent view does not expand to fit. I note that the third view has a top space constraint for the supervisor, and not just for presentation above it. This can be seen in the screenshot below.

source share