Skip to content

Commit

Permalink
adds catch to only resize if values have changed
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Jul 5, 2016
1 parent e0d48aa commit 49dcfe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viz/methods/resize.coffee
Expand Up @@ -17,7 +17,7 @@ module.exports =
vars.self.width(width)
vars.self.height(height)

vars.self.draw()
vars.self.draw() if vars.width.changed or vars.height.changed

d3.select(window).on("resize." + vars.container.id, (e) =>
clearTimeout resize
Expand Down

0 comments on commit 49dcfe0

Please sign in to comment.