Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(126)

Unified Diff: app/views/environment.js

Issue 6856067: Fix initial creation of subordinates.
Patch Set: Fix initial creation of subordinates. Created 12 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « [revision details] ('k') | test/test_environment_view.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/views/environment.js
=== modified file 'app/views/environment.js'
--- app/views/environment.js 2012-11-19 19:52:43 +0000
+++ app/views/environment.js 2012-11-20 16:22:21 +0000
@@ -318,7 +318,9 @@
this.vis = vis;
this.tree = d3.layout.pack()
.size([width, height])
- .value(function(d) {return d.unit_count;})
+ .value(function(d) {
+ return Math.max(d.unit_count, 1);
+ })
.padding(300);
this.updateCanvas();
« no previous file with comments | « [revision details] ('k') | test/test_environment_view.js » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b