Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Basic Diagramming issues (Read 1345 times)
charles
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: May 26th, 2014
Basic Diagramming issues
May 26th, 2014 at 2:59pm
Print Post  
I've been looking into MindFusion diagramming for a project.

I have been using the trial version to create linked node diagrams.

I have two issues here:
  • When my diagram is generated with an automatic layout, the produced diagram is not well placed inside the DiagramView. It is never initially visible, the diagram seems to be moved down inside the view. The user always needs to zoom out to find the diagram.
  • This also causes problems when i need to export. It is normally expected that the export functionality exports the entire diagram by default, not just the current view inside the DiagramView. I am using this to export:

    Code
    Select All
    MindFusion.Diagramming.Export.PdfExporter pdfExp = new MindFusion.Diagramming.Export.PdfExporter();
    pdfExp.Export(this.mf_Diagram, filename);
     
    
    

Any help would be appreciated.

Attached is an example PNG export.
  

test__1_.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Basic Diagramming issues
Reply #1 - May 26th, 2014 at 3:56pm
Print Post  
Hi,

At this time Layout.Arrange does not automatically resize the diagram.Bounds rectangle, which defines DiagramView's scroll range and the size of exported PDF page. Call Diagram.ResizeToFitItems after Arrange to fix that. Alternatively if you want to keep some minimal size for diagram.Bounds, you could set it to the union of minimumRect and diagram.GetContentBounds().

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