This commit is contained in:
Nils Schneider 2012-09-04 11:49:58 +02:00
parent 05039876ee
commit 15cb028583

View file

@ -261,8 +261,8 @@ var force = d3.layout.force()
force.on("tick", function() { force.on("tick", function() {
var size = force.size() var size = force.size()
var nodes = force.nodes() var nodes = force.nodes()
var n = nodes.length var nl = nodes.length
for (i = 0; i < n; i++) { for (i = 0; i < nl; i++) {
var n = nodes[i] var n = nodes[i]
if (!n.fixed) { if (!n.fixed) {
if (n.x < n.rx) n.x = n.rx if (n.x < n.rx) n.x = n.rx