mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-02 05:39:38 +02:00
Test a complex sequence diagram
This commit is contained in:
@@ -180,7 +180,7 @@ const drawNote = function (elem, startx, verticalPos, msg, forceWidth) {
|
||||
|
||||
let textElem = svgDraw.drawText(g, textObj, rect.width - conf.noteMargin)
|
||||
|
||||
let textHeight = textElem[0][0].getBBox().height
|
||||
let textHeight = (textElem._groups || textElem)[0][0].getBBox().height
|
||||
if (!forceWidth && textHeight > conf.width) {
|
||||
textElem.remove()
|
||||
g = elem.append('g')
|
||||
|
Reference in New Issue
Block a user