This question is locked. New answers and comments are not allowed.
I have an application which starts with two nodes linked by a connector. Double clicking the lower node opens another node and creates a connection, applies a TreeDown layout and runs the AutoFit command. Continuing to double click the bottom item will open the next node in the sequence. So, it quickly becomes: node-connector-node-connector-node....on and on.....all in a straight line down the page.
The problem arises when you get to the 14th item. At that point, the same code runs, but the next element doesn't appear.
The solution I found was to disable the 'Auto-Fit' ran after each addition of a Node & Connector.
I've also noted that it will work if you wait about 15 to 30 seconds after a node opens (this isn't an acceptable solution though).
This appears to be a problem with the Auto-Fit command. I've since made that a 'manual' command button, but is there a way to avoid this problem?
Thanks
The problem arises when you get to the 14th item. At that point, the same code runs, but the next element doesn't appear.
The solution I found was to disable the 'Auto-Fit' ran after each addition of a Node & Connector.
I've also noted that it will work if you wait about 15 to 30 seconds after a node opens (this isn't an acceptable solution though).
This appears to be a problem with the Auto-Fit command. I've since made that a 'manual' command button, but is there a way to avoid this problem?
Thanks