Browse Source

Pull request #1456: 无JIRA任务 整理一下

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'b018703a1c1a65b77648ae8c7e3a1fa7eef42208':
  bugfix
master
guy 4 years ago
parent
commit
4667c6f071
  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