Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Grid Alignment (Read 1741 times)
just2click
YaBB Newbies
*
Offline


Go Sharks Go

Posts: 16
Joined: Oct 11th, 2006
Grid Alignment
Nov 19th, 2006 at 10:20am
Print Post  
Hi all,

I'm trying to force FC to display every graph in the middle of the object.
For some reason whenever a graph is displayed it sanps to the left border of the object.
Is there a way to force it to draw the graph in the middle of the control regardless of the tree/graph size?

Thanks in advnace,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Grid Alignment
Reply #1 - Nov 20th, 2006 at 6:50am
Print Post  
Hi Dror,

After creating the graph, call FC.FitDocToObjects(marginSize). That will leave some empty space on all sides of the graph.

Use the ScrollTo or BringIntoView methods to scroll to the center of the diagram.

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