Better padding handling in nodes

This commit is contained in:
Knut Sveidqvist
2022-07-27 10:24:27 +02:00
parent 03d71829c6
commit 2d361964ce
5 changed files with 24 additions and 10 deletions

View File

@@ -267,7 +267,7 @@ export const draw = (text, id, version, diagObj) => {
positionNodes(positionedMindmap, conf);
// Setup the view box and size of the svg element
setupGraphViewbox(undefined, svg, conf.mindmap.diagramPadding, conf.mindmap.useMaxWidth);
setupGraphViewbox(undefined, svg, conf.mindmap.padding, conf.mindmap.useMaxWidth);
} catch (e) {
log.error('Error while rendering info diagram');
log.error(e.message);