Skip to content

Commit

Permalink
Fix for negative-size nodes in IE9. Fixes #498.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Feb 12, 2012
1 parent 76400ac commit 7a4a8ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/treemap/treemap.js
Expand Up @@ -48,6 +48,6 @@ function cell() {
this
.style("left", function(d) { return d.x + "px"; })
.style("top", function(d) { return d.y + "px"; })
.style("width", function(d) { return d.dx - 1 + "px"; })
.style("height", function(d) { return d.dy - 1 + "px"; });
.style("width", function(d) { return Math.max(0, d.dx - 1) + "px"; })
.style("height", function(d) { return Math.max(0, d.dy - 1) + "px"; });
}

0 comments on commit 7a4a8ec

Please sign in to comment.