From a8d9fa190d48c51244c06436a02182574b0fbb90 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 17 May 2021 16:26:53 +0800 Subject: [PATCH] bugfix --- src/core/platform/web/config.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/core/platform/web/config.js b/src/core/platform/web/config.js index 6884691b0..7ae257f02 100644 --- a/src/core/platform/web/config.js +++ b/src/core/platform/web/config.js @@ -60,12 +60,18 @@ BI.prepares.push(function () { // 在横向自适应场景下我们需要使用table的自适应撑出滚动条的特性(flex处理不了这种情况) // 主要出现在center_adapt或者horizontal_adapt的场景,或者主动设置horizontalAlign的场景 if (isAdapt) { - return BI.extend({}, ob, {type: "bi.table_adapt"}); + return BI.extend({ + horizontalAlign: BI.HorizontalAlign.Center + }, ob, {type: "bi.table_adapt"}); } if (supportFlex) { - return BI.extend({}, ob, {type: "bi.flex_horizontal"}); + return BI.extend({ + horizontalAlign: BI.HorizontalAlign.Center + }, ob, {type: "bi.flex_horizontal"}); } - return BI.extend({}, ob, {type: "bi.table_adapt"}); + return BI.extend({ + horizontalAlign: BI.HorizontalAlign.Center + }, ob, {type: "bi.table_adapt"}); }); BI.Plugin.configWidget("bi.horizontal_float", function (ob) { if (isSupportFlex()) {