Author: clopes
Date: 2011-08-15 10:49:08 -0700 (Mon, 15 Aug 2011)
New Revision: 26557

Modified:
   cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/util/Nodes.as
   
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/render/NodeRenderer.as
Log:
Fixes bug #2573: Error sizing nodes when layout changes

Modified: cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/util/Nodes.as
===================================================================
--- cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/util/Nodes.as  
2011-08-15 17:34:02 UTC (rev 26556)
+++ cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/util/Nodes.as  
2011-08-15 17:49:08 UTC (rev 26557)
@@ -77,8 +77,8 @@
             if (_properties == null) {
                 _properties = {
                     shape: shape,
-                    w: width,
-                    h: height,
+                    "props.width": width,
+                    "props.height": height,
                     size: size,
                     fillColor: fillColor,
                     lineColor: lineColor, 

Modified: 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/render/NodeRenderer.as
===================================================================
--- 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/render/NodeRenderer.as
    2011-08-15 17:34:02 UTC (rev 26556)
+++ 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/render/NodeRenderer.as
    2011-08-15 17:49:08 UTC (rev 26557)
@@ -92,8 +92,8 @@
             var lineAlpha:Number = d.lineAlpha;
             var lineWidth:Number = d.lineWidth;
             
-            var w:Number = d.w;
-            var h:Number = d.h;
+            var w:Number = d.props.width;
+            var h:Number = d.props.height;
             
             if (isNaN(w) || w < 0) w = size;
             if (isNaN(h) || h < 0) h = size;

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