Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Calling scrollToPart twice can lead to error

$
0
0

@Doogal wrote:

I've found what seems to be a bug. I've managed to create a simple test case. If I modify the Org Chart Editor so the 'Remove Role' click handler is this

			  myDiagram.startTransaction("remove role");
			  myDiagram.commandHandler.scrollToPart();
                          myDiagram.commandHandler.deleteSelection();
			  myDiagram.commandHandler.scrollToPart();
			  myDiagram.commitTransaction("remove role");

Then I get an exception thrown saying 'Collection was modified during iteration' during the second call to scrollToPart. I believe this is causing us other issues with the diagram becoming unresponsive, although that's not apparent in this test case

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles