Browse Source

Pull request #2074: 无JIRA任务 bugfix

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

* commit 'abb06df9ac2650f47fdb37cbabf22061acf0bf66':
  update
es6
guy 3 years ago
parent
commit
150f2670de
  1. 17
      src/core/platform/web/config.js

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

@ -108,7 +108,22 @@ BI.prepares.push(function () {
if (isSupportFlex()) { if (isSupportFlex()) {
return BI.extend({}, ob, {type: "bi.flex_horizontal_adapt"}); return BI.extend({}, ob, {type: "bi.flex_horizontal_adapt"});
} }
return BI.extend({}, ob, {type: "bi.inline_horizontal_adapt"}); if (ob.items && ob.items.length <= 1) {
return BI.extend({}, ob, {type: "bi.inline_horizontal_adapt"});
}
return BI.extend({}, ob, {
type: "bi.inline_horizontal_adapt",
vgap: 0,
tgap: 0,
bgap: 0,
items: [{
type: "bi.vertical",
vgap: ob.vgap,
tgap: ob.tgap,
bgap: ob.bgap,
items: ob.items
}]
});
}); });
BI.Plugin.configWidget("bi.horizontal_fill", function (ob) { BI.Plugin.configWidget("bi.horizontal_fill", function (ob) {

Loading…
Cancel
Save