Browse Source

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

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

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

@ -92,7 +92,7 @@ BI.HTapeLayout = BI.inherit(BI.Layout, {
left: self._optimiseGap(left[i] + self._optimiseItemLgap(item) + self._optimiseItemHgap(item) + o.hgap + o.lgap)
});
if (columnSize === "" || columnSize === "fill") {
if (BI.isNull(columnSize) || columnSize === "" || columnSize === "fill") {
return true;
}
});
@ -110,7 +110,7 @@ BI.HTapeLayout = BI.inherit(BI.Layout, {
right: self._optimiseGap(right[i] + self._optimiseItemRgap(item) + self._optimiseItemHgap(item) + o.hgap + o.rgap)
});
if (columnSize === "" || columnSize === "fill") {
if (BI.isNull(columnSize) || columnSize === "" || columnSize === "fill") {
return true;
}
});

Loading…
Cancel
Save