Resizable group, autoresize not work when add nodes, how to trigger by code

resizable: true,
resizeObjectName: ‘Group’,
resizeAdornmentTemplate: nodeResizeAdornmentTemplate,
ungroupable: true,
computesBoundsAfterDrag: true,
computesBoundsIncludingLocation: true,
mouseDrop: finishDrop,
mouseDragEnter: (e, grp, prev) => highlightGroup(e, grp, true),
mouseDragLeave: (e, grp, next) => highlightGroup(e, grp, false),
handlesDragDropForMembers: true,
layout: $(go.GridLayout, {
wrappingColumn: 6,
alignment: go.GridLayout.Position,
cellSize: new go.Size(1, 1),
spacing: new go.Size(4, 4),
}),

Did you have a question?
It would also help if you posted small screenshots showing what you have and what you want instead.