Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Blank white space in diagram (Read 1696 times)
bkernan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 28th, 2009
Blank white space in diagram
Jul 8th, 2009 at 1:35pm
Print Post  
Hello,

I know this has been asked before, but I cannot seem to locate it in the forum.

Using the second latest version of NetDiagram in JavaApplet mode I create layeredlayout diagrams.

I ResizeToFitItems() after Arranging the diagram but there is still is plenty of white space to the right and sometimes bottom of my diagram. The bounding box of the nodes aligns to topleft corner which is good.

For example: say my diagram renders out to be 600 x 600 px, but if you draw an imaginary bounding  box around all the nodes in the diagram it's only 500  x 400px.

Please let me know what post I can refer to or method I need to call.

Thanks!
  
Back to top
 
IP Logged
 
bkernan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 28th, 2009
Re: Blank white space in diagram
Reply #1 - Jul 8th, 2009 at 2:00pm
Print Post  
After searching for a solution on and off for a few weeks, I have found a fix! haha

I changed my units from default to pixel. Now everything works as desired (after updating sizes to reflect new units of course)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Blank white space in diagram
Reply #2 - Jul 9th, 2009 at 8:08am
Print Post  
Hi,

I suppose your DiagramView was larger than diagram.Bounds. You could call DocToClient() to convert from the default units to pixels, and assign the returned size to the view's Width and Height properties.

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