diff --git a/src/component/tooltip/TooltipView.js b/src/component/tooltip/TooltipView.js index b866f866da4dcda056ace691ba3639abc48451d7..90c0433fb56e12749500522a2bb0b477765d4ab2 100644 --- a/src/component/tooltip/TooltipView.js +++ b/src/component/tooltip/TooltipView.js @@ -699,8 +699,8 @@ define(function (require) { } function refixTooltipPosition(x, y, el, viewWidth, viewHeight, gapH, gapV) { - var width = el.clientWidth; - var height = el.clientHeight; + var width = el.offsetWidth; + var height = el.offsetHeight; if (gapH != null) { if (x + width + gapH > viewWidth) { @@ -769,4 +769,4 @@ define(function (require) { return align === 'center' || align === 'middle'; } -}); \ No newline at end of file +});