Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Nodes are shifting to up diirection in a case (Read 3159 times)
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Nodes are shifting to up diirection in a case
Jan 10th, 2011 at 11:51am
Print Post  
Hi Stoyan,

In a particular scenario, only selected node (not entire diagram's content) is moving to up direction.

To reproduce this issue we have sent a sample to your support id. Steps to reproduce are written in the mail itself.

Please check this issue and let know how to resolve it.

Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Nodes are shifting to up diirection in a case
Reply #1 - Jan 10th, 2011 at 3:06pm
Print Post  
Please send us the assemblies that implement ToolWindow and SplitContainer.
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Nodes are shifting to up diirection in a case
Reply #2 - Jan 11th, 2011 at 5:39am
Print Post  
Hi Stoyan,

Sent missing assambly at your support id, please check.

Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Nodes are shifting to up diirection in a case
Reply #3 - Jan 11th, 2011 at 10:08am
Print Post  
The node does not shift up, it just stays where the mouse is while you move the whole diagram down in the middle of interaction. Add this to your showbutton() method before setting button.Visible:

if (btn.Visibility != Visibility.Visible)
     diagram.CancelDrag();

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Nodes are shifting to up direction in a case
Reply #4 - Jan 11th, 2011 at 10:38am
Print Post  
Hi Stoyan,

Thanks for quick response.

One minor issue is there.

We have used diagram.ModificationStart = ModificationStart.AutoHandles; in the application. Due to this we can move the node without selecting it.

By applying the suggested change, it is not working for the very first time. Here are the steps to reproduce this issue.
1. Run the application.
2. Click on any of the diagram, a button will get visible click on that button to unlock the diagram.
3. Now go to another diagram, don’t click anywhere just try to drag one node
4. After this, button will get visible in that diagram but node will not move. Now if we are on the same diagram than we can move the node without selecting it.

Problem is with the very first time when we try to move the node when that diagram has not in focus.

Please suggest how to resolve this issue.

Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Nodes are shifting to up diirection in a case
Reply #5 - Jan 11th, 2011 at 10:54am
Print Post  
Don't you think these two things are mutually exclusive. You can either allow interaction, and thus the node stays with the mouse pointer when the rest of the diagram moves down, or you cancel it and the node remains in its original position in the diagram. You can resolve this by moving the unlock button below the diagram to avoid shifting it up/down when the button is collapsed or shown again.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint