提交 9c94ea9b 编写于 作者: P pah100

tweak

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