Merge branch 'feature/1483_long_messages' of https://github.com/mermaid-js/mermaid into develop

This commit is contained in:
Chris Moran
2020-06-19 09:17:04 -04:00
3 changed files with 7 additions and 8 deletions

View File

@@ -827,7 +827,8 @@ export const draw = function(text, id) {
if (conf.useMaxWidth) {
diagram.attr('height', '100%');
diagram.attr('width', '100%');
diagram.attr('style', 'max-width:100%;');
diagram.attr('style', 'max-width:' + width + 'px;');
// diagram.attr('style', 'max-width:100%;');
} else {
diagram.attr('height', height);
diagram.attr('width', width);