Merge pull request #3668 from mermaid-js/3659_height_handling

#3659 Adding height when not using maxWidth
This commit is contained in:
Knut Sveidqvist
2022-10-25 14:48:50 +02:00
committed by GitHub
2 changed files with 21 additions and 20 deletions

View File

@@ -26,6 +26,7 @@ export const calculateSvgSizeAttrs = function (height, width, useMaxWidth) {
attrs.set('width', '100%');
attrs.set('style', `max-width: ${width}px;`);
} else {
attrs.set('height', height);
attrs.set('width', width);
}
return attrs;