mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 16:59:48 +02:00
#2824 Size changes and updated regressionstest afters diagram sizing changes
This commit is contained in:
@@ -305,7 +305,7 @@ export const draw = function (text, id, _version, diag) {
|
||||
|
||||
const svgBounds = svg.node().getBBox();
|
||||
|
||||
configureSvgSize(svg, height, width * 1.75, conf.useMaxWidth);
|
||||
configureSvgSize(svg, height, width, conf.useMaxWidth);
|
||||
|
||||
// Ensure the viewBox includes the whole svgBounds area with extra space for padding
|
||||
const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;
|
||||
|
Reference in New Issue
Block a user