guy 3 years ago
parent
commit
ffd4a43f21
  1. 2
      src/core/platform/web/config.js
  2. 1
      src/core/wrapper/layout/fill/float.fill.horizontal.js

2
src/core/platform/web/config.js

@ -31,7 +31,7 @@ BI.prepares.push(function () {
// 当列宽既需要自动列宽又需要自适应列宽时,inline布局也处理不了了,降级table处理吧
var hasAutoAndFillColumnSize = false;
if (ob.columnSize && ob.columnSize.length > 0) {
if (ob.columnSize && ob.columnSize.indexOf("") >= 0 && ob.columnSize.indexOf("fill") >= 0) {
if (ob.columnSize.indexOf("") >= 0 && ob.columnSize.indexOf("fill") >= 0) {
hasAutoAndFillColumnSize = true;
}
} else {

1
src/core/wrapper/layout/fill/float.fill.horizontal.js

@ -38,6 +38,7 @@ BI.FloatHorizontalFillLayout = BI.inherit(BI.Layout, {
type: "bi.vertical_adapt",
horizontalAlign: BI.HorizontalAlign.Stretch,
verticalAlign: o.verticalAlign,
columnSize: ["fill"],
items: [item]
});
} else {

Loading…
Cancel
Save