Skip to content

Commit

Permalink
fix: Lower rectangle border thinner than the upper one in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
trulex committed Jul 6, 2019
1 parent 1124281 commit 748a0c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class TreeBuilder {
return d.x - d.cWidth / 2 + 'px';
})
.attr('y', function(d) {
return d.y - d.cHeight / 2 + 'px';
return Math.round(d.y - d.cHeight / 2) + 'px';
})
.attr('width', function(d) {
return d.cWidth + 'px';
Expand Down
1 change: 1 addition & 0 deletions test/demo/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">

<style type="text/css">
Expand Down

0 comments on commit 748a0c4

Please sign in to comment.