Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Nodes are dragged out of Diagram? (Read 3711 times)
chris
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Nodes are dragged out of Diagram?
Dec 17th, 2008 at 9:13pm
Print Post  
Hi Stoyan,

When I drag and drop a node to the far top end of the window(out of the Diagram control), the node is disappeared. Because it is dragged out of the Diagram control. I can't move the scroll bar to the
top to bring it back.(It is already at the topmost end.)

But there is no such problem in the sample projects.

How can I do to prevent the nodes to be dragged out of a Diagram?

Thanks a lot.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Nodes are dragged out of Diagram?
Reply #1 - Dec 17th, 2008 at 9:18pm
Print Post  
Hi Chris,

You could enable either the RestrictItemsToBounds or AutoResize property of the Diagram.

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


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Re: Nodes are dragged out of Diagram?
Reply #2 - Dec 17th, 2008 at 11:04pm
Print Post  
Hi, Stoyan,

It doesn't work. I tried all kinds of values but the can still be dragged out.

I checked a sample project.
The AutoSize property uses the default value RightAndDown and the RestrictItemsToBounds uses defautl value Intersection in the project.

They are not set by code and the nodes can not be dragged out.

Thanks.
  
Back to top
 
IP Logged
 
chris
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Re: Nodes are dragged out of Diagram?
Reply #3 - Dec 17th, 2008 at 11:25pm
Print Post  
In the same time, when a node is dragged out of the Diagram, the Overview control in another window changes postion and can't be changed back.

Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Nodes are dragged out of Diagram?
Reply #4 - Dec 18th, 2008 at 6:25am
Print Post  
I've tried this in a new project, and the nodes cannot be dropped out of the diagram by default. Could you copy here your XAML for the diagram, and any initialization code that runs from the window.Loaded event handler? By drag and drop you mean selecting and moving a node in the diagram, and not OLE drag and drop between different controls on the form, right?

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


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Re: Nodes are dragged out of Diagram?
Reply #5 - Dec 18th, 2008 at 4:05pm
Print Post  
I got it!
I set the AutoRize to AllDirections. It doesn't work.
The default value RightAndDown works.

Thanks Stoyan.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Nodes are dragged out of Diagram?
Reply #6 - Dec 18th, 2008 at 4:16pm
Print Post  
Hi Chris,

Regarding the overview disappearing when auto-resizing, you can find a patch for this in the latest posts in the bug-report section. We'll release an official fix with version 2.0.1 next week.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint