提交 83a08e05 编写于 作者: Z Zachary Snow

use offsetWidth/Height to confine tooltip

上级 31c35216
...@@ -699,8 +699,8 @@ define(function (require) { ...@@ -699,8 +699,8 @@ define(function (require) {
} }
function refixTooltipPosition(x, y, el, viewWidth, viewHeight, gapH, gapV) { function refixTooltipPosition(x, y, el, viewWidth, viewHeight, gapH, gapV) {
var width = el.clientWidth; var width = el.offsetWidth;
var height = el.clientHeight; var height = el.offsetHeight;
if (gapH != null) { if (gapH != null) {
if (x + width + gapH > viewWidth) { if (x + width + gapH > viewWidth) {
...@@ -769,4 +769,4 @@ define(function (require) { ...@@ -769,4 +769,4 @@ define(function (require) {
return align === 'center' || align === 'middle'; return align === 'center' || align === 'middle';
} }
}); });
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册