How to size a table subview

As shown in the screenshot below, I have a subview for a table defined but it is much taller than I’d like it to be. I’ve tried setting the defaultSize.height property on the subview’s view itself but that seems to have no effect. There seem to be no settings for the subview size in the rows.subview properties in the Table itself. If it matters, the subview’s root container is a Flex container.

Am I missing something or is there just no way to change the height of a subview?

1 Like

I have also same issue but I use table as subview to list more detailed rows.

Also using Flex container

It would be nice that there could be possibility to set basis to auto so that it would always the right size

Anyone find a solution to this?

I implemented a table with a subview that contains a table of the related records to the parent table. I would like the subview to somewhat auto-size to the size of the subtable rather than it having a lot of whitespace or forcing scrolling.

1 Like

Set the component’s basis in your embedded subview to auto.


image

small:


expanded (look at the row below the subview; it has been pushed down a little more because the subview grew):

I can’t get it to work for embedded table subviews right now… the auto basis on a table seems to size the component so that only the header is visible.

Did not know about the auto basis, missed that, thanks!

But your right, it does not seem to work with subview tables