Skip to content

Commit aaca369

Browse files
committed
Merge pull request hojberg#51 from ackl/patch-1
Update arrow.js
2 parents 02dadb5 + 48e46c7 commit aaca369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/arrow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Arrow.prototype = {
167167
if (borderWidth > 0) {
168168
css = this._arrowCSS(
169169
this.get('borderColor'),
170-
this.get('size') + Math.round(borderWidth * 1.41421356), // cos(PI/4) * 2
170+
this.get('size') + Math.round(borderWidth * Math.sqrt(2)), // cos(PI/4) * 2
171171
'before'
172172
);
173173
}

0 commit comments

Comments
 (0)