Skip to content

Commit 54f6d8a

Browse files
committed
Fixed up the width of the arrow boarder. Is is a 45° width so must be cos(PI/4)
1 parent e5d48ff commit 54f6d8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/lib/models/arrow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ if (!('CSSArrowPlease' in window)) window.CSSArrowPlease = {};
135135
if (borderWidth > 0) {
136136
css = this._arrowCSS(
137137
this.get('borderColor'),
138-
this.get('size') + (borderWidth * 2),
138+
this.get('size') + (borderWidth * 1.41421356), // cos(PI/4) * 2
139139
'before'
140140
);
141141
}

0 commit comments

Comments
 (0)