Resize Group with mouse or script code

Hello,
When I resize Group object in Designer with mouse (dragging arrow at the edge of component), all components inside it resize accordingly.
But when I resize same Group with mouseReleased event using system.gui.reshapeComponent or system.gui.resizeComponent, only Group size changes, not components inside.
How can I get the same resize fnctionality for components with script code as I get when resizing component with mouse?

This appears to be a bug and there is a ticket for it in our system. I’m not sure exactly when this issue will be resolved but I have added this forum post to the ticket so it will be updated when it is fixed.