diff --git a/src/core/platform/web/config.js b/src/core/platform/web/config.js index f4051252f..25f1cd91e 100644 --- a/src/core/platform/web/config.js +++ b/src/core/platform/web/config.js @@ -108,7 +108,22 @@ BI.prepares.push(function () { if (isSupportFlex()) { 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) {