diff --git a/src/core/platform/web/config.js b/src/core/platform/web/config.js index 975e8c5a03..913870007d 100644 --- a/src/core/platform/web/config.js +++ b/src/core/platform/web/config.js @@ -18,10 +18,10 @@ BI.prepares.push(function () { if (isLessIE8) { return ob; } - if (IE || !supportFlex || (ob.items && ob.items.length > 1)) { - return BI.extend(ob, {type: "bi.table_adapt"}); + if (!IE && supportFlex) { + return BI.extend(ob, {type: "bi.flex_horizontal"}); } - return BI.extend(ob, {type: "bi.flex_horizontal"}); + return BI.extend(ob, {type: "bi.table_adapt"}); }); BI.Plugin.configWidget("bi.center_adapt", function (ob) { var isIE = BI.isIE(), supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1); diff --git a/src/core/wrapper/layout/adapt/adapt.table.js b/src/core/wrapper/layout/adapt/adapt.table.js index 7f5d5d83b4..98e7bc259a 100644 --- a/src/core/wrapper/layout/adapt/adapt.table.js +++ b/src/core/wrapper/layout/adapt/adapt.table.js @@ -6,7 +6,7 @@ BI.TableAdaptLayout = BI.inherit(BI.Layout, { props: function () { return BI.extend(BI.TableAdaptLayout.superclass.props.apply(this, arguments), { - baseCls: "bi-table-center-adapt-layout", + baseCls: "bi-table-adapt-layout", columnSize: [], verticalAlign: BI.VerticalAlign.Top, horizontalAlign: BI.HorizontalAlign.Left,