Tooltip: fix arrow separating from tooltip

pull/5439/head
Leopoldthecoder 2017-06-10 19:41:24 +08:00 committed by 杨奕
parent 2230a9170f
commit 8675c31e36
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@
var sideValue = center - popper[side];
// prevent arrow from being placed not contiguously to its popper
sideValue = Math.max(Math.min(popper[len] - arrowSize, sideValue), 0);
sideValue = Math.max(Math.min(popper[len] - arrowSize - 3, sideValue), 3);
arrowStyle[side] = sideValue;
arrowStyle[altSide] = ''; // make sure to remove any old style from the arrow