fix:修改提示框 始终在鼠标下方

This commit is contained in:
zhangyu
2020-09-28 10:10:14 +08:00
parent 88d1951304
commit 8cf5c75be2
4 changed files with 18 additions and 12 deletions

View File

@@ -308,11 +308,12 @@
}else{
x = pointX - boxWidth;
}
if((parClientHeight-pointY-(parTop-parScrollTop)-20)>=boxHeight){//说明鼠标上面放不下提示框
y = pointY+10;
}else {
y = pointY-boxHeight;
}
// if((parClientHeight-pointY-(parTop-parScrollTop)-20)>=boxHeight){//说明鼠标上面放不下提示框
// y = pointY+10;
// }else {
// y = pointY-boxHeight;
// }
y = pointY+10;
return [x,y];
}else {
x = pointX - boxWidth;