Better margin calclulation when there are several diagrams on one page.

This commit is contained in:
knsv
2015-01-25 16:39:34 +01:00
parent a38a156d3b
commit 910b90b79c
7 changed files with 9 additions and 8 deletions

View File

@@ -23395,7 +23395,7 @@ exports.draw = function (text, id,isDot) {
// Run the renderer. This is what draws the final graph.
render(d3.select("#" + id + " g"), g);
var svgb = document.querySelector('#mermaidChart0');
var svgb = document.querySelector("#" + id);
/*
var xPos = document.querySelectorAll('.clusters rect')[0].x.baseVal.value;
@@ -23439,7 +23439,7 @@ exports.draw = function (text, id,isDot) {
}
i = i + 1;
});
},200);
},20);
};