From 38502dd94a2b5b3f1500f5ca0bcfec925e5a60f9 Mon Sep 17 00:00:00 2001 From: zsmj Date: Sun, 23 Oct 2022 16:08:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=20fix:=20=E4=BF=AE=E5=A4=8Dtape?= =?UTF-8?q?=E5=B8=83=E5=B1=80=20NaN=E7=9A=84=E5=9C=BA=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/wrapper/layout/layout.tape.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/wrapper/layout/layout.tape.js b/src/core/wrapper/layout/layout.tape.js index a3fa8bcf0..185af813d 100644 --- a/src/core/wrapper/layout/layout.tape.js +++ b/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; } });