From cf5996923aa52e4b8e4aee9c3eb39aa0060528dc Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 18 Jun 2021 20:57:31 +0800 Subject: [PATCH] add --- src/core/wrapper/layout/layout.tape.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/wrapper/layout/layout.tape.js b/src/core/wrapper/layout/layout.tape.js index 6cc0329988..f66191d367 100644 --- a/src/core/wrapper/layout/layout.tape.js +++ b/src/core/wrapper/layout/layout.tape.js @@ -207,7 +207,7 @@ BI.VTapeLayout = BI.inherit(BI.Layout, { if (BI.isNull(top[i])) { top[i] = top[i - 1] + (o.rowSize[i - 1] || items[i - 1].height) + (items[i - 1].tgap || 0) + 2 * (items[i - 1].vgap || 0) + o.vgap + o.tgap + o.bgap; } - if (o.rowSize[i] < 1 && o.rowSize[i] >=0) { + if (o.rowSize[i] < 1 && o.rowSize[i] > 0) { w.element.css({ top: (top[i] * 100).toFixed(1) + "%", height: (o.rowSize[i] * 100).toFixed(1) + "%"