Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FlowLayout.Arrange method hangs (Read 2478 times)
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
FlowLayout.Arrange method hangs
Oct 20th, 2008 at 4:52pm
Print Post  
Hi there

I'm having a problem with the FlowLayout.Arrange method, it seems to hang in some scenarios.

This issue can be easily recreated using the ProcessLayout example:

    Press Arrange button to put nodes in lanes.
    Delete link from ‘Client Credit OK?’ node to ‘Process task’ node.
    Create link from ‘Accept task’ node to ‘Process task’ node by dragging from ‘Accept task’ node to ‘Process task’ node.
    Press Arrange button to put nodes in lanes.
    Execution hangs on the ‘FlowLayout.Arrange(diagram)’ line of the arrangeButton_Click sub in Mainform.

Is this a bug or am I doing something stupid (very possible..)

Thanks

Tom
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowLayout.Arrange method hangs
Reply #1 - Oct 21st, 2008 at 1:10pm
Print Post  
Right, that's a bug in our code. Our developer will fix it in the next few days and we'll send you an updated version.

Stoyan
  
Back to top
 
IP Logged
 
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
Re: FlowLayout.Arrange method hangs
Reply #2 - Oct 21st, 2008 at 1:44pm
Print Post  
Thanks Stoyo, that will make our testing a bit more straightforward!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowLayout.Arrange method hangs
Reply #3 - Oct 23rd, 2008 at 8:25am
Print Post  
Hi,

This version should fix the problem:
https://mindfusion.eu/_temp/flowlt.zip

It also lets you left-align the groups. To do so, add this code:
rules.NodeRules.VerticalDisconnectedGroupsAlignment = true;

For the next official release we'll probably change the property type to some enum to allow for more types of alignments.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
Re: FlowLayout.Arrange method hangs
Reply #4 - Oct 24th, 2008 at 8:18am
Print Post  
Many thanks, I will try it this morning and report back  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint