Merge pull request #473 from gnkm/Add-viewbox-to-class-diagram

Add viewbox attr to class diagram
This commit is contained in:
Knut Sveidqvist
2017-03-19 13:37:39 +01:00
committed by GitHub

View File

@@ -405,6 +405,7 @@ module.exports.draw = function (text, id) {
// //
diagram.attr('height', '100%'); diagram.attr('height', '100%');
diagram.attr('width', '100%'); diagram.attr('width', '100%');
diagram.attr('viewBox', '0 0 ' + (g.graph().width + 20) + ' ' + (g.graph().height + 20));
// //
// //
// //