mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-13 04:19:44 +02:00
Add viewbox attr to class diagram
This commit is contained in:
@@ -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));
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user