From d6a243008d761e6bac73c58a131abe88fc7f5e2f Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 24 Sep 2014 18:33:20 +0300 Subject: rhizicore: start responsive ui: svg width/height in percent --- scripts/rhizicore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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) -- cgit v1.3.1