TreeTable auto column width after expand/collapse

Hello!

I have a TreeTable where one of the columns contains a Component. In the two-level tree, the parent nodes have a single Button whereas the leaves have a HorizontalLayout with two Buttons (the layout has sizeUndefined = true).

By default, all parents are collapsed. If I expand a parent, this button column doesn’t adapt to the change in content size. I can, of course, resize the column with the mouse. If I run in ?debug mode and run the Analyze layout, the column jumps into the proper size (no error is reported).

How can I request such re-layout programmatically? I’ve tried the “vaadin.forceSync();”, tried requestRepaints, adding and removing fake rows when expanding, etc.
12576.png
12577.png
12578.png