Minor change to code

This commit is contained in:
Tyler Long 2018-03-13 10:58:10 +08:00
parent 8a20a71906
commit 93aa575697
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ const drawNote = function (elem, startx, verticalPos, msg, forceWidth) {
g = elem.append('g')
textElem = svgDraw.drawText(g, textObj, 2 * rect.width - conf.noteMargin)
textHeight = textElem[0][0].getBBox().height
textHeight = (textElem._groups || textElem)[0][0].getBBox().height
rectElem.attr('width', 2 * rect.width)
bounds.insert(startx, verticalPos, startx + 2 * rect.width, verticalPos + 2 * conf.noteMargin + textHeight)
} else {