Hi,
We have undo engine on and are seeing incorrect behaviour undoing a layout operation after initial load of the graph control.
For example when the application loads, we add a load of nodes and edges and then hit a button to do a layout. Hit Ctrl+Z to undo the layout and it returns the original layout of nodes, edges correctly BUT the viewport is in the wrong place (e.g. Node is originally placed on the far left of graph, layout applied it moves, undo action applied and the node moves to bottom edge centre of graph). Subsequent runs of the layout work fine when undo is done, its the first time its done it works incorrectly.
Is there any way to get it to return to the correct position? It looks like internally the graph control is in some default state (ContentRect is 0, 0, 100, 100, DesiredSize is 0,0). Can we manually force the graph control out of this state on initial load to force it into a state where it works correctly?
Regards