math is hard sometimes?

This commit is contained in:
chris moran 2020-06-30 06:42:29 -04:00
parent d42b95bab9
commit 5b37536ce5
No known key found for this signature in database
GPG Key ID: 7E303019E6BB02D7
1 changed files with 2 additions and 2 deletions

View File

@ -970,7 +970,7 @@ const buildMessageModel = function(msg, actors) {
msg.message,
Math.max(
msgDims.width + 2 * conf.wrapPadding,
boundedWidth - 2 * conf.wrapPadding,
boundedWidth + 2 * conf.wrapPadding,
conf.width
),
conf.messageFont()
@ -979,7 +979,7 @@ const buildMessageModel = function(msg, actors) {
return {
width: Math.max(
msgDims.width + 2 * conf.wrapPadding,
boundedWidth - 2 * conf.wrapPadding,
boundedWidth + 2 * conf.wrapPadding,
conf.width
),
height: 0,