|
|
@ -18,10 +18,10 @@ BI.prepares.push(function () { |
|
|
|
if (isLessIE8) { |
|
|
|
if (isLessIE8) { |
|
|
|
return ob; |
|
|
|
return ob; |
|
|
|
} |
|
|
|
} |
|
|
|
if (IE || !supportFlex || (ob.items && ob.items.length > 1)) { |
|
|
|
if (!IE && supportFlex) { |
|
|
|
return BI.extend(ob, {type: "bi.table_adapt"}); |
|
|
|
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) { |
|
|
|
BI.Plugin.configWidget("bi.center_adapt", function (ob) { |
|
|
|
var isIE = BI.isIE(), supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1); |
|
|
|
var isIE = BI.isIE(), supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1); |
|
|
|