hi,
I have a node with Auto panel which has a table panel inside(scrollable table) . I would like the height of the node to increase when we add more items to the itemarray, (ie, when more rows get added to the table).
i have given maxsize to the parent panel, when the page initial loads it takes up height according to the number of items. the height goes until max height. This works fine when page is loaded.
But after page load if i add a new item, it gets added to the table, but the height of the node remains same.As it is scrollable, we are able to see the added item if we scroll. But I would require the height to increase accordingly until it reaches max height.
go.Node,
'Auto',
nodeStyle(),
{
stretch: go.GraphObject.Fill,
locationObjectName: 'SHAPE',
resizeObjectName: 'SHAPE',
},
$(go.Shape, { fill: 'white', name: 'SHAPE', maxSize: new go.Size(271, 800) }),
// the content consists of a header and a list of items
$(
go.Panel,
'Vertical',
{ stretch: go.GraphObject.Fill, minSize: new go.Size(271, 96), alignment: go.Spot.TopLeft },
$(
go.Panel,
'Table',
$(
//go.Panel,
'ScrollingTable',
{
name: '',
stretch: go.GraphObject.Fill,
defaultAlignment: go.Spot.Left,
defaultColumnSeparatorStroke: 'gray',
defaultRowSeparatorStroke: 'gray',
width: 271,
},
new go.Binding('TABLE.itemArray', 'pr'),
{}
)
)