From 7f46b84fa21ccd496435fc03d155d96226ff7f45 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 28 Aug 2020 00:50:00 +0800 Subject: [PATCH] bugfix --- src/core/platform/web/config.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/core/platform/web/config.js b/src/core/platform/web/config.js index 0f5726918..a5a63fe51 100644 --- a/src/core/platform/web/config.js +++ b/src/core/platform/web/config.js @@ -18,16 +18,7 @@ BI.prepares.push(function () { if (isLessIE8) { return ob; } - // center_adapt - if (ob.verticalAlign === BI.VerticalAlign.Middle && ob.horizontalAlign === BI.HorizontalAlign.Center) { - return BI.extend(ob, {type: "bi.table_adapt"}); - } - // vertical_adapt - if (ob.verticalAlign === BI.VerticalAlign.Middle && ob.horizontalAlign === BI.HorizontalAlign.Left) { - return BI.extend(ob, {type: "bi.table_adapt"}); - } - // horizontal_adapt - if (ob.verticalAlign === BI.VerticalAlign.Top && ob.horizontalAlign === BI.HorizontalAlign.Center) { + if (ob.items && ob.items.length > 1) { return BI.extend(ob, {type: "bi.table_adapt"}); } if (!IE && supportFlex) {