Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Error with diagram size (Read 4078 times)
tzippy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Jan 11th, 2009
Error with diagram size
Feb 22nd, 2009 at 1:53pm
Print Post  
Hi,
I'm adding a link and get this error:

Cannot call Arrange on a UIElement with infinite size or NaN. Parent of type '' invokes the UIElement. Arrange called on element of type 'MindFusion.Diagramming.Wpf.DiagramLink'.

If I'm giving the diagram its size on design time - it works well, but I need to give the size on run time...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Error with diagram size
Reply #1 - Feb 22nd, 2009 at 2:10pm
Print Post  
Hi,

Even if you don't define diagram.Bounds in design-time, it should default to A4 size. Or are you explicitly setting it to a NaN size?

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


I love YaBB 1G - SP1!

Posts: 77
Joined: Jan 11th, 2009
Re: Error with diagram size
Reply #2 - Feb 23rd, 2009 at 10:02am
Print Post  
Hi,
I would like to give a Nan value, but I understood it is impossible  Sad
However, if I'm giving a size to the diagram, I get a space between the diagram to its container grid.
I set padding to 0, but the same result...  Cry
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Error with diagram size
Reply #3 - Feb 23rd, 2009 at 11:29am
Print Post  
Hi,

Currently Diagram returns the size of its Bounds when measured. To fill the container grid, try setting large Diagram.Bounds, placing the diagram inside a ScrollViewer that fills the grid, and hiding the scrollbars by setting the scrollbar_visibility properties.

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