From a396d8058830ec5d2ec1b2c4f594b1433f12ec02 Mon Sep 17 00:00:00 2001 From: lang Date: Fri, 6 May 2016 14:56:19 +0800 Subject: [PATCH] tooltip position callback adjust --- src/component/tooltip/TooltipView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component/tooltip/TooltipView.js b/src/component/tooltip/TooltipView.js index 5aa9a256b..d4af6517c 100644 --- a/src/component/tooltip/TooltipView.js +++ b/src/component/tooltip/TooltipView.js @@ -124,8 +124,8 @@ define(function (require) { var rect = el && el.getBoundingRect().clone(); el && rect.applyTransform(el.transform); if (typeof positionExpr === 'function') { - // Callback of position can be an array or a string specify the positiont - positionExpr = positionExpr([x, y], params, rect); + // Callback of position can be an array or a string specify the position + positionExpr = positionExpr([x, y], params, content.el, rect); } if (zrUtil.isArray(positionExpr)) { -- GitLab