guy 4 years ago
parent
commit
99091b56e4
  1. 6
      src/core/platform/web/config.js
  2. 2
      src/core/wrapper/layout/adapt/adapt.table.js

6
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);

2
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,

Loading…
Cancel
Save