We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02dadb5 commit 48e46c7Copy full SHA for 48e46c7
app/models/arrow.js
@@ -167,7 +167,7 @@ Arrow.prototype = {
167
if (borderWidth > 0) {
168
css = this._arrowCSS(
169
this.get('borderColor'),
170
- 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
171
'before'
172
);
173
}
0 commit comments