Browse Source

Pull request #1475: 无JIRA任务 bugfix

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

* commit 'dab76eb6dbce954e4b34b7db2bf933a97bb0c266':
  bugfix
es6
guy 4 years ago
parent
commit
bb563833c1
  1. 6
      src/core/platform/web/config.js

6
src/core/platform/web/config.js

@ -40,6 +40,9 @@ BI.prepares.push(function () {
if (!isIE && supportFlex) {
return BI.extend(ob, {type: "bi.flex_center_adapt"});
}
if (ob.horizontalAlign === BI.HorizontalAlign.Right) {
return BI.extend(ob, {type: "bi.inline_center_adapt", items: ob.items && ob.items.reverse()});
}
return BI.extend(ob, {type: "bi.inline_center_adapt"});
}
return ob;
@ -51,6 +54,9 @@ BI.prepares.push(function () {
if (!isIE && supportFlex) {
return BI.extend(ob, {type: "bi.flex_vertical_center_adapt"});
}
if (ob.horizontalAlign === BI.HorizontalAlign.Right) {
return BI.extend(ob, {type: "bi.inline_center_adapt", items: ob.items && ob.items.reverse()});
}
return BI.extend(ob, {type: "bi.inline_vertical_adapt"});
}
return ob;

Loading…
Cancel
Save