Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Scrollbar Help Needed (Read 1736 times)
rahul
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: Jul 11th, 2016
Scrollbar Help Needed
Jul 11th, 2016 at 10:18am
Print Post  
Hello,
I am using javascript mindfusion created diagram but not able to apply horizontal scrollbar to diagram.Horizontal scrollbar appears to diagram after zoom in but its height is very small hardly visible.
Please help.
Already tried css.


  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3378
Joined: Oct 19th, 2005
Re: Scrollbar Help Needed
Reply #1 - Jul 11th, 2016 at 10:38am
Print Post  
Hi,

The scrollbar ranges correspond to the size of diagram.Bounds rectangle. Try setting it to a larger value -

Code
Select All
var Rect = new MindFusion.Drawing.Rect;
diagram.setBounds(new Rect(0, 0, 2000, 2000));
 



If you've already created some diagram elements and cannot scroll to the last of them, you could call diagram.resizeToFitItems() method instead to make the diagram just large enough to contain them all.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint