Add viewbox attr to class diagram

This commit is contained in:
Genki Matsunaga 2017-02-07 18:29:49 +09:00
parent fb70b9742a
commit b935108ed8

View File

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