Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Scollbars (Read 1273 times)
Dana Beck
Guest


Scollbars
Apr 5th, 2006 at 11:38am
Print Post  
After populating my FlowChart with "Boxes" created from data in database I call.

1. TreeLayout1.Arrange(FlowChart1)
2. FlowChart1.AutoSizeDoc = MindFusion.FlowChartX.AutoSize.AllDirections

The result is that half the chart is of the right of the screen and I can't scroll there.

Am I doing something wrong or is this a bug? As I understand it the "AutoSizeDoc" method should have sorted this out.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Scollbars
Reply #1 - Apr 5th, 2006 at 12:32pm
Print Post  
After adding or arranging boxes programmatically, call FitSizeToObjects. AutoSizeDoc resizes the document only when users draw or drag objects, but not when creating or modifying objects via the API. It's like that because calculating the document size could slow down the creation of objects, say if you create 1000 boxes in a loop.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint