diff --git a/cypress/platform/size-tester.html b/cypress/platform/size-tester.html new file mode 100644 index 000000000..5702be7c1 --- /dev/null +++ b/cypress/platform/size-tester.html @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + +
+ + + diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/util.js b/packages/mermaid/src/rendering-util/rendering-elements/shapes/util.js index eda1aa9af..977db517d 100644 --- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/util.js +++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/util.js @@ -3,6 +3,7 @@ import { getConfig } from '../../../diagram-api/diagramAPI.js'; import { select } from 'd3'; import { evaluate, sanitizeText } from '../../../diagrams/common/common.js'; import { decodeEntities } from '../../../utils.js'; +import { log } from '../../../logger.js'; export const labelHelper = async (parent, node, _classes) => { let cssClasses; @@ -110,6 +111,9 @@ export const updateNodeBounds = (node, element) => { const bbox = element.node().getBBox(); node.width = bbox.width; node.height = bbox.height; + log.debug('updateNodeBounds: #####################################'); + log.debug('updateNodeBounds:', node.id, node.width, node.height); + log.debug('updateNodeBounds: #####################################'); }; /**