summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/templates/index.html2
-rw-r--r--src/client/rz_core.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/res/templates/index.html b/res/templates/index.html
index 28cbaf51..95d857a8 100644
--- a/res/templates/index.html
+++ b/res/templates/index.html
@@ -97,7 +97,7 @@ var rz_config = { // set as a global variable
</form>
</div>
</div>
-
+ <div id="graph-view__canvas"></div>
<div class="typeselection" style="display:none">
<table>
<tr id="intro"><td>Use [Tab] to change node type</td></tr>
diff --git a/src/client/rz_core.js b/src/client/rz_core.js
index 8251659d..bc2b6eb0 100644
--- a/src/client/rz_core.js
+++ b/src/client/rz_core.js
@@ -78,7 +78,7 @@ var initDrawingArea = function () {
}
var el = document.body;
- vis = d3.select(el).append("svg:svg")
+ vis = d3.select('#graph-view__canvas').append("svg:svg")
.attr('id', 'canvas_d3')
.attr("width", '100%')
.attr("height", '100%')