Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NetDiagram ZoomToFit (Read 1858 times)
KBalquis
YaBB Newbies
*
Offline


Senior developer

Posts: 12
Joined: Nov 19th, 2007
NetDiagram ZoomToFit
Dec 4th, 2007 at 12:39pm
Print Post  
Hello,
am using the following::

    function onAppletStarted()
{
    var fcApplet = <%= wfGraph.AppletElement %>;
     fcApplet.width = 728;
     fcApplet.height = 200;
     fcApplet.zoomToFit();
}


am getting Javascript error:
"Object doesn't support this property or method.
please advise

Regards,
Kamel Balquis
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NetDiagram ZoomToFit
Reply #1 - Dec 4th, 2007 at 12:53pm
Print Post  
Hi,

fcApplet is an instance of the FlowChartApplet class and zoomToFit is a method of the FlowChart class.
The applet contains a FlowChart instance which you can access via the getFlowChart() method, so the script should look like this

Code
Select All
function onAppletStarted()
{
	var fcApplet = <%= wfGraph.AppletElement %>;
	fcApplet.width = 728;
	fcApplet.height = 200;

	var fc = fcApplet.getFlowChart();
	fc.zoomToFit();
}
 



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