summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-09-24 18:33:20 +0300
committerAlon Levy <alon@pobox.com>2014-09-28 10:55:56 +0300
commitd6a243008d761e6bac73c58a131abe88fc7f5e2f (patch)
tree97c101501949b52843ef2a8b0eff3344c322de82 /scripts
parenteb1829c0b1aba550560027330860f356a157baa5 (diff)
rhizicore: start responsive ui: svg width/height in percent
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rhizicore.js4
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)