Commit f401ff4d authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix zoom when resized

parent c63f8d1b
......@@ -1429,6 +1429,8 @@
// Update sizes and scales
updateSizes();
updateScales();
// Set x for zoom again because of scale update
zoom.x(x);
// Resize svg
d3.select('svg').attr('width', width + margin.left + margin.right);
d3.select('#'+clipId).select('rect').attr('width', width);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment