diff --git a/src/base/single/label/abstract.label.js b/src/base/single/label/abstract.label.js index bde0b2d135..ca76dd49b9 100644 --- a/src/base/single/label/abstract.label.js +++ b/src/base/single/label/abstract.label.js @@ -211,9 +211,6 @@ _createNotCenterEl: function () { var o = this.options; var adaptLayout = "bi.vertical_adapt"; - if (o.textAlign === "right" && (BI.isIE() || !isSupportFlex())) { - adaptLayout = "bi.right_vertical_adapt"; - } var json = this._createJson(); if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) { diff --git a/src/core/wrapper/layout/adapt/inline.vertical.js b/src/core/wrapper/layout/adapt/inline.vertical.js index cf34c2c6e2..24736f8e68 100644 --- a/src/core/wrapper/layout/adapt/inline.vertical.js +++ b/src/core/wrapper/layout/adapt/inline.vertical.js @@ -18,7 +18,7 @@ BI.InlineVerticalAdaptLayout = BI.inherit(BI.Layout, { rgap: 0, tgap: 0, bgap: 0, - textAlign: "left" + horizontalAlign: "left" }); }, @@ -27,7 +27,7 @@ BI.InlineVerticalAdaptLayout = BI.inherit(BI.Layout, { var o = this.options; this.element.css({ whiteSpace: "nowrap", - textAlign: o.textAlign + textAlign: o.horizontalAlign }); this.populate(this.options.items); }, @@ -72,4 +72,4 @@ BI.InlineVerticalAdaptLayout = BI.inherit(BI.Layout, { this._mount(); } }); -BI.shortcut("bi.inline_vertical_adapt", BI.InlineVerticalAdaptLayout); \ No newline at end of file +BI.shortcut("bi.inline_vertical_adapt", BI.InlineVerticalAdaptLayout);