Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic V6.0.4: Container issue (Read 3439 times)
j poz
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Nov 21st, 2012
V6.0.4: Container issue
Aug 23rd, 2013 at 3:51pm
Print Post  
Just upgraded from 6.0.0 to 6.0.4..

When a placing a node into a container, then collapsing the container, the connections to the node inside of the container float below the container..
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: V6.0.4: Container issue
Reply #1 - Aug 23rd, 2013 at 4:59pm
Print Post  
Cannot reproduce that in the Demo -> Containers step. What properties should we set to see the problem?
  
Back to top
 
IP Logged
 
j poz
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Nov 21st, 2012
Re: V6.0.4: Container issue
Reply #2 - Aug 23rd, 2013 at 6:30pm
Print Post  
Where can I download the demo app, compiled in 6.0.4?
  
Back to top
 
IP Logged
 
j poz
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Nov 21st, 2012
Re: V6.0.4: Container issue
Reply #3 - Aug 23rd, 2013 at 7:28pm
Print Post  
Nevermind, ran the installer and found it. Will try to reproduce the issue in the demo app.
  
Back to top
 
IP Logged
 
j poz
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Nov 21st, 2012
Re: V6.0.4: Container issue
Reply #4 - Aug 26th, 2013 at 2:52pm
Print Post  
Nevermind. It was something in our code and not yours.
  
Back to top
 
IP Logged
 
j poz
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Nov 21st, 2012
Re: V6.0.4: Container issue
Reply #5 - Aug 26th, 2013 at 4:40pm
Print Post  
I was able to crash the Demo app..

Open the Demo application, and go to the Links/Form preservation example.

Create a container.

Place the three purple tools in the middle inside of the container, and then collapse it.

Now move the collapse container around.

The links will draw all over the place before the overview window gets a red X and the following exception is thrown:

Code
Select All
System.OverflowException: Overflow error.
   at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   at System.Drawing.Graphics.DrawBeziers(Pen pen, PointF[] points)
   at MindFusion.Drawing.GdiGraphics.DrawBeziers(Pen pen, PointF[] points)
   at MindFusion.Diagramming.DiagramLink.c1370db3929ef6cd3aa09d77d6b2634ee(IGraphics c6c92d7b0a001e45905428290158c2b17, Pen c0f685a72281e147f119b9874fbb67978, Brush cc9c0b1cf31fd6d910c3938b2e9280eb2, Pen cd8be2b8d612571bae5bdd304ffd61f3b, Boolean c9ad6e71c98bc3301de210ef60cbebaf6, Boolean cd48ca304024caf5a5aee6709466a79ef)
   at MindFusion.Diagramming.DiagramLink.DrawShadow(IGraphics graphics, RenderOptions options)
   at MindFusion.Diagramming.Diagram.c1b6767ed81842749ffd8923be01b9a03(IGraphics c6c92d7b0a001e45905428290158c2b17, RectangleF ce628c69113f2f8808f36872bc2738966, Boolean c4f62962e65ed617349113106456b7633)
   at MindFusion.Diagramming.Diagram.Draw(IGraphics graphics, RenderOptions options, RectangleF clipRect, Boolean noModifiedItems)
   at MindFusion.Diagramming.WinForms.Overview.c59dd069dc76431cfd80a56e288fb26d2(IGraphics c9a63e72f7d84bca7bcd11ec599cbc5ca, Rectangle c7eceaf45c8866e0268124a61e0f393e6)
   at MindFusion.Diagramming.WinForms.Overview.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: V6.0.4: Container issue
Reply #6 - Aug 28th, 2013 at 12:00pm
Print Post  
It seems the combination of links' Dynamic + RetainForm properties does not work that well when the link target nodes are inside a folded container. If you need to use RetainForm, you could toggle link.Dynamic off or on from respectively ContainerFolded / ContainerUnfolded event handlers as a work-around. Our developer will try to fix that in next few days.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint