   bodyPt = obj.normalMessage.bodyPoint
   drawMessageLine(ctx, obj.rect, obj.is_return)
   drawMessageArrowhead(ctx, headPt, isHeadLeft(obj))
-  drawMessageText(ctx, bodyPt.x, bodyPt.y, obj.body)
+  drawMessageText(ctx, bodyPt.x, bodyPt.y, obj.rect.bodyWidth, obj.body)
 
 isHeadLeft = (obj) ->
   obj.to.order <= obj.from.order

INSTANCE_HEIGHT = 30

CANVAS_PADDING = 15

drawMessages = (ctx, messages) ->
  drawMessage(ctx, obj) for obj in messages


drawNote = (ctx, obj) ->
  pt = obj.note.bodyPoint
  drawNoteText(ctx, pt.x, pt.y, obj.rect.bodyWidth, obj.body)

drawNoteText = (ctx, x, y, width, body) ->
  ctx.fillStyle = "rgb(230, 230, 240)"
  ctx.fillRect(x, y + 3, width, 10)
  ctx.fillStyle = "black"

  ctx.font = "12px Sans-Serif"
