Merge pull request #1225 from jgreywolf/1058-ClassDiagramScaling

1058 class diagram scaling
This commit is contained in:
Knut Sveidqvist 2020-01-27 20:14:39 +01:00 committed by GitHub
commit d571c7e08e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -570,8 +570,8 @@ export const draw = function(text, id) {
}
});
diagram.attr('height', '100%');
diagram.attr('width', `${g.graph().width * 1.5 + 20}`);
diagram.attr('height', g.graph().height + 40);
diagram.attr('width', g.graph().width * 1.5 + 20);
diagram.attr('viewBox', '-10 -10 ' + (g.graph().width + 20) + ' ' + (g.graph().height + 20));
};