Since adornment’s alignment only specifies the location of the center point, when the length is too long, it will obscure the original node, so I wrote the following code hoping that the layout can change with the length, but it did not work, please help to see the reason or if there is a better solution
const inputClickedTemplate = $(
go.Adornment,
'Spot',
$(go.Placeholder),
$(
go.Panel,
'Vertical',
$(go.Panel, 'Auto', inputAdornmentMainTemplate, { name: 'A' }),
$(go.Panel, 'Auto', inputBottomMore),
new go.Binding('alignment', 'naturalBounds', function (s: go.Rect) {
return new go.Spot(1, 1, 100, s.width);
}).ofObject('A')
)
);