Author: clopes
Date: 2011-10-11 13:57:24 -0700 (Tue, 11 Oct 2011)
New Revision: 27129
Modified:
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/components/GraphView.as
Log:
Fixed bug: fitToScreen option not respected when loading XGMML that contains
graph center data.
Modified:
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/components/GraphView.as
===================================================================
---
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/components/GraphView.as
2011-10-11 20:45:21 UTC (rev 27128)
+++
cytoscapeweb/branches/compound/src/org/cytoscapeweb/view/components/GraphView.as
2011-10-11 20:57:24 UTC (rev 27129)
@@ -119,7 +119,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.