Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Fit to screen (Read 1160 times)
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
Fit to screen
Jun 1st, 2017 at 10:34am
Print Post  
I need show diagram inside visible screen for this what should i do ? As i am using setZoomFactor API but this doesn't work for me. Can you please suggest me an proper way to achieve this?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Fit to screen
Reply #1 - Jun 1st, 2017 at 10:52am
Print Post  
Try calling Diagram.zoomToFit(); It should zoom enough to fit inside the parent Div of diagram's Canvas, it's up to you to set appropriate size for that Div.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint