guy 4 years ago
parent
commit
b3801330d4
  1. 3
      src/base/single/label/abstract.label.js
  2. 6
      src/core/wrapper/layout/adapt/inline.vertical.js

3
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) {

6
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);
BI.shortcut("bi.inline_vertical_adapt", BI.InlineVerticalAdaptLayout);

Loading…
Cancel
Save