File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ if (!('CSSArrowPlease' in window)) window.CSSArrowPlease = {};
6868 css += '\theight: 0;\n' ;
6969 css += '\twidth: 0;\n' ;
7070 css += '\tposition: absolute;\n' ;
71+ css += '\tpointer-events: none;\n' ;
7172
7273 css += '}\n' ;
7374
@@ -134,7 +135,7 @@ if (!('CSSArrowPlease' in window)) window.CSSArrowPlease = {};
134135 if ( borderWidth > 0 ) {
135136 css = this . _arrowCSS (
136137 this . get ( 'borderColor' ) ,
137- this . get ( 'size' ) + ( borderWidth * 2 ) ,
138+ this . get ( 'size' ) + ( borderWidth * 1.41421356 ) , // cos(PI/4) * 2
138139 'before'
139140 ) ;
140141 }
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ describe("CSSArrowPlease.Arrow", function () {
245245
246246 expect ( arrow . _arrowCSS ) . toHaveBeenCalledWith (
247247 arrow . get ( 'borderColor' ) ,
248- arrow . get ( 'size' ) + ( arrow . get ( 'borderWidth' ) * 2 ) ,
248+ arrow . get ( 'size' ) + ( arrow . get ( 'borderWidth' ) * 1.41421356 ) ,
249249 'before'
250250 ) ;
251251 } ) ;
You can’t perform that action at this time.
0 commit comments