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

This commit is contained in:
knsv 2015-01-25 16:40:12 +01:00
parent 910b90b79c
commit 4562a811fc
1 changed files with 2 additions and 2 deletions

View File

@ -378,7 +378,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;
@ -422,6 +422,6 @@ exports.draw = function (text, id,isDot) {
}
i = i + 1;
});
},200);
},20);
};