Author: Christian Lopes
Date: 2011-05-02 12:27:38 -0700 (Mon, 02 May 2011)
New Revision: 24887

Modified:
   cytoscapeweb/trunk/cytoscapeweb/default.properties
   cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/ExternalMediator.as
   
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphVis.as
Log:
Fixed bug #2518: Tree and Radial layouts not applied to disconnected components

Modified: cytoscapeweb/trunk/cytoscapeweb/default.properties
===================================================================
--- cytoscapeweb/trunk/cytoscapeweb/default.properties  2011-05-02 16:30:59 UTC 
(rev 24886)
+++ cytoscapeweb/trunk/cytoscapeweb/default.properties  2011-05-02 19:27:38 UTC 
(rev 24887)
@@ -1,3 +1,3 @@
-build.version=0.7.2
+build.version=0.8
 
 FLEX_HOME=/Applications/Adobe Flex Builder 3 Plug-in/sdks/3.2.0/
\ No newline at end of file

Modified: 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/ExternalMediator.as
===================================================================
--- 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/ExternalMediator.as   
    2011-05-02 16:30:59 UTC (rev 24886)
+++ 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/ExternalMediator.as   
    2011-05-02 19:27:38 UTC (rev 24887)
@@ -443,7 +443,7 @@
         
         private function getNetworkAsImage(format:String="pdf", 
options:Object=null):String {
             if (options == null) options = {};
-            // TODO: Refactor - proxy should NOT use a mediator!!!
+            
             var appMediator:ApplicationMediator = 
facade.retrieveMediator(ApplicationMediator.NAME) as ApplicationMediator;
             var img:* = appMediator.getGraphImage(format, options.width, 
options.height);
             

Modified: 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphVis.as
===================================================================
--- 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphVis.as
    2011-05-02 16:30:59 UTC (rev 24886)
+++ 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphVis.as
    2011-05-02 19:27:38 UTC (rev 24887)
@@ -272,9 +272,10 @@
                     // Create one layout for each disconnected component:
                     for (var i:uint = 0; i < _dataList.length; i++) {
                         var d:Data = _dataList[i];
+                        
                         if (d.nodes.length > 1) {
                             var rect:Rectangle = 
GraphUtils.calculateGraphDimension(d.nodes, _layoutName, _style); 
-                            var root:NodeSprite = Layouts.rootNode(data);
+                            var root:NodeSprite = Layouts.rootNode(d);
                             
                             layout = createLayout(layoutObj, d, rect, root);
                             _appliedLayouts.push(layout);

-- 
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