From dfd0c38a133c02f6b7b82a54f19a1abb10fe91ed Mon Sep 17 00:00:00 2001 From: git Date: Sat, 19 Jun 2021 13:31:10 +0800 Subject: [PATCH] bugfix --- src/core/wrapper/layout/layout.table.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/wrapper/layout/layout.table.js b/src/core/wrapper/layout/layout.table.js index 65ce48362..d665c5429 100644 --- a/src/core/wrapper/layout/layout.table.js +++ b/src/core/wrapper/layout/layout.table.js @@ -69,8 +69,8 @@ BI.TableLayout = BI.inherit(BI.Layout, { abs.push(BI.extend({ top: 0, bottom: 0, - left: o.columnSize[i] <= 1 ? (left * 100).toFixed(1) + "%" : left, - width: o.columnSize[i] <= 1 ? (o.columnSize[i] * 100).toFixed(1) + "%" : o.columnSize[i] + left: o.columnSize[i] < 1 ? (left * 100).toFixed(1) + "%" : left, + width: o.columnSize[i] < 1 ? (o.columnSize[i] * 100).toFixed(1) + "%" : o.columnSize[i] }, arr[i])); left += o.columnSize[i] + (o.columnSize[i] < 1 ? 0 : o.hgap); } else { @@ -83,8 +83,8 @@ BI.TableLayout = BI.inherit(BI.Layout, { abs.push(BI.extend({ top: 0, bottom: 0, - right: o.columnSize[j] <= 1 ? (right * 100).toFixed(1) + "%" : right, - width: o.columnSize[j] <= 1 ? (o.columnSize[j] * 100).toFixed(1) + "%" : o.columnSize[j] + right: o.columnSize[j] < 1 ? (right * 100).toFixed(1) + "%" : right, + width: o.columnSize[j] < 1 ? (o.columnSize[j] * 100).toFixed(1) + "%" : o.columnSize[j] }, arr[j])); right += o.columnSize[j] + (o.columnSize[j] < 1 ? 0 : o.hgap); } else { @@ -96,8 +96,8 @@ BI.TableLayout = BI.inherit(BI.Layout, { abs.push(BI.extend({ top: 0, bottom: 0, - left: left <= 1 ? (left * 100).toFixed(1) + "%" : left, - right: right <= 1 ? (right * 100).toFixed(1) + "%" : right + left: left < 1 ? (left * 100).toFixed(1) + "%" : left, + right: right < 1 ? (right * 100).toFixed(1) + "%" : right }, arr[i])); } var w = BI._lazyCreateWidget({