Skip to content

Commit

Permalink
Minor change to code
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Mar 13, 2018
1 parent 8a20a71 commit 93aa575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagrams/sequenceDiagram/sequenceRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 93aa575

Please sign in to comment.