diff options
| author | Alon Levy <alon@pobox.com> | 2014-09-24 18:33:20 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-09-28 10:55:56 +0300 |
| commit | d6a243008d761e6bac73c58a131abe88fc7f5e2f (patch) | |
| tree | 97c101501949b52843ef2a8b0eff3344c322de82 /scripts/rhizicore.js | |
| parent | eb1829c0b1aba550560027330860f356a157baa5 (diff) | |
rhizicore: start responsive ui: svg width/height in percent
Diffstat (limited to 'scripts/rhizicore.js')
| -rw-r--r-- | scripts/rhizicore.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 455c4ab5..3d7871f0 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -374,8 +374,8 @@ function myGraph(el) { zoomObject = d3.behavior.zoom().scaleExtent([0.1, 3]).on("zoom", zoom); vis = this.vis = d3.select(el).append("svg:svg") - .attr("width", Math.max(w, 1000) * 5) - .attr("height", Math.max(h, 1000) ) + .attr("width", '100%') + .attr("height", '100%') .attr("pointer-events", "all") .append("g") .call(zoomObject) |
