Browse Source

无JIRA fix: 修复tape布局 NaN的场景

es6
zsmj 2 years ago
parent
commit
f9b6a56b10
  1. 4
      src/core/wrapper/layout/layout.tape.js

4
src/core/wrapper/layout/layout.tape.js

@ -217,7 +217,7 @@ BI.VTapeLayout = BI.inherit(BI.Layout, {
top: self._optimiseGap(top[i] + self._optimiseItemTgap(item) + self._optimiseItemVgap(item) + o.vgap + o.tgap)
});
if (rowSize === "" || rowSize === "fill") {
if (BI.isNull(rowSize) || rowSize === "" || rowSize === "fill") {
return true;
}
});
@ -235,7 +235,7 @@ BI.VTapeLayout = BI.inherit(BI.Layout, {
bottom: self._optimiseGap(bottom[i] + self._optimiseItemBgap(item) + self._optimiseItemVgap(item) + o.vgap + o.bgap)
});
if (rowSize === "" || rowSize === "fill") {
if (BI.isNull(rowSize) || rowSize === "" || rowSize === "fill") {
return true;
}
});

Loading…
Cancel
Save