提交 de619588 编写于 作者: L lang

Fix dataZoom label position

上级 b2fc024f
......@@ -394,6 +394,7 @@ define(function (require) {
draggable: true,
cursor: 'move',
drift: bind(this._onDragMove, this, 'all'),
ondragstart: bind(this._showDataInfo, this, true),
ondragend: bind(this._onDragEnd, this),
onmouseover: bind(this._showDataInfo, this, true),
onmouseout: bind(this._showDataInfo, this, false),
......@@ -575,8 +576,9 @@ define(function (require) {
function setLabel(handleIndex) {
// Label
// Text should not transform by barGroup.
// Ignore handlers transform
var barTransform = graphic.getTransform(
displaybles.handles[handleIndex], this.group
displaybles.handles[handleIndex].parent, this.group
);
var direction = graphic.transformDirection(
handleIndex === 0 ? 'right' : 'left', barTransform
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册