diff --git a/src/diagrams/sequence/sequenceRenderer.js b/src/diagrams/sequence/sequenceRenderer.js index 90eb249a7..c5a8ae544 100644 --- a/src/diagrams/sequence/sequenceRenderer.js +++ b/src/diagrams/sequence/sequenceRenderer.js @@ -615,7 +615,7 @@ export const draw = function(text, id) { noteWidth = shouldWrap ? conf.width : Math.max( - actors[msg.from].width / 2 + actors[msg.to].width / 2 - conf.actorMargin, + actors[msg.from].width / 2 + actors[msg.to].width / 2, textWidth + 2 * conf.noteMargin ); if (shouldWrap) { @@ -636,7 +636,7 @@ export const draw = function(text, id) { noteWidth = shouldWrap ? conf.width : Math.max( - actors[msg.from].width / 2 + actors[msg.to].width / 2 - conf.actorMargin, + actors[msg.from].width / 2 + actors[msg.to].width / 2, textWidth + 2 * conf.noteMargin ); if (shouldWrap) {