Author: clopes
Date: 2011-10-11 13:57:49 -0700 (Tue, 11 Oct 2011)
New Revision: 27130

Modified:
   
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphView.as
Log:
Fixed bug: fitToScreen option not respected when loading XGMML that contains 
graph center data.

Modified: 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphView.as
===================================================================
--- 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphView.as
   2011-10-11 20:57:24 UTC (rev 27129)
+++ 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphView.as
   2011-10-11 20:57:49 UTC (rev 27130)
@@ -117,7 +117,7 @@
                 dispatchEvent(new 
GraphViewEvent(GraphViewEvent.RENDER_COMPLETE));
                 
                 // Set the view center:
-                if (viewCenter != null) {
+                if (viewCenter != null && 
config.currentLayout.options.fitToScreen == false) {
                     var cc:Point = new Point(stage.stageWidth/2, 
stage.stageHeight/2); // canvas center
                     cc = vis.globalToLocal(cc); // in case vis is not 
positioned in (0,0)
                     

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to