From 48e46c75b1380e0e5582f862e0153fc6f36cae84 Mon Sep 17 00:00:00 2001 From: Andrew Low Date: Thu, 18 Jun 2015 17:22:51 +0100 Subject: [PATCH] Update arrow.js --- app/models/arrow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/arrow.js b/app/models/arrow.js index fafde4d..e52f640 100644 --- a/app/models/arrow.js +++ b/app/models/arrow.js @@ -167,7 +167,7 @@ Arrow.prototype = { if (borderWidth > 0) { css = this._arrowCSS( this.get('borderColor'), - this.get('size') + Math.round(borderWidth * 1.41421356), // cos(PI/4) * 2 + this.get('size') + Math.round(borderWidth * Math.sqrt(2)), // cos(PI/4) * 2 'before' ); }