提交 a396d805 编写于 作者: L lang

tooltip position callback adjust

上级 f3ddf4ef
......@@ -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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册