Get the desired result with defineFigureGenerator + Auto panel + geom.spot1/spot2

Try the Group template defined in Page Not Found -- Northwoods Software.

Note that it uses a custom layout for the Group, so that after a layout happens it automatically sizes the Panel holding the “Condition” Shape. That layout need not inherit from TreeLayout – it could inherit from any Layout that uses LayoutNetwork. And if you wanted to use GridLayout or the default Layout itself, that could be implemented too, just not with an override of Layout.commitLayout.

Thanks a lot for the complete example! I will try and integrate it in my app.