diff options
Diffstat (limited to 'scripts')
| -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 715c8475..720a3212 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", w * 5) - .attr("height", h ) + .attr("width", Math.max(w, 1000) * 5) + .attr("height", Math.max(h, 1000) ) .attr("pointer-events", "all") .append("g") .call(zoomObject) |
