Grid Layout Tiles

Hello,
We have a diagram with rectangle nodes with different height and width.
Currently GridLayout finds the largest node height and width and all nodes use that surface to calculate their positions in the layout.
I’m looking for a way to have the nodes arranged by their own surfaces and in an optimal way (to minimize diagram surface used).

Thanks.

Try setting GridLayout.CellSize to 1x1 and GridLayout.Spacing to 0x0.