Index: tools/turbolizer/graph-layout.js |
diff --git a/tools/turbolizer/graph-layout.js b/tools/turbolizer/graph-layout.js |
index 9986639a6330fb0879e6791dc110dfe16a816a71..e9b44b4d2cdf267fbf3d0e2680cf80ddd03c712d 100644 |
--- a/tools/turbolizer/graph-layout.js |
+++ b/tools/turbolizer/graph-layout.js |
@@ -371,7 +371,7 @@ function layoutNodeGraph(graph) { |
var rankSets = []; |
// Collect sets for each rank. |
graph.nodes.forEach(function(n, i){ |
- n.y = n.rank * (DEFAULT_NODE_ROW_SEPARATION + graph.getNodeHeight() + |
+ n.y = n.rank * (DEFAULT_NODE_ROW_SEPARATION + graph.getNodeHeight(n) + |
2 * DEFAULT_NODE_BUBBLE_RADIUS); |
if (n.visible) { |
if (rankSets[n.rank] === undefined) { |
@@ -482,8 +482,8 @@ function redetermineGraphBoundingBox(graph) { |
if ((node.y - 50) < graph.minGraphY) { |
graph.minGraphY = node.y - 50; |
} |
- if ((node.y + graph.getNodeHeight() + 50) > graph.maxGraphY) { |
- graph.maxGraphY = node.y + graph.getNodeHeight() + 50; |
+ if ((node.y + graph.getNodeHeight(node) + 50) > graph.maxGraphY) { |
+ graph.maxGraphY = node.y + graph.getNodeHeight(node) + 50; |
} |
} |