From 9c94ea9bfabda2c595c304436e11cfd440d9014e Mon Sep 17 00:00:00 2001 From: pah100 Date: Thu, 20 Jul 2017 18:43:07 +0800 Subject: [PATCH] tweak --- src/component/axisPointer/viewHelper.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/component/axisPointer/viewHelper.js b/src/component/axisPointer/viewHelper.js index f5b75eeaa..b5f483f45 100644 --- a/src/component/axisPointer/viewHelper.js +++ b/src/component/axisPointer/viewHelper.js @@ -49,9 +49,7 @@ define(function(require) { var paddings = formatUtil.normalizeCssArray(labelModel.get('padding') || 0); var font = textStyleModel.getFont(); - var textRect = textContain.getBoundingRect( - text, font, labelPos.textAlign, labelPos.textBaseline - ); + var textRect = textContain.getBoundingRect(text, font); var position = labelPos.position; var width = textRect.width + paddings[1] + paddings[3]; -- GitLab