From 0ffa8056ab8a814143671255e9c2aa979cd7f4b9 Mon Sep 17 00:00:00 2001 From: RAHEEL Date: Tue, 5 Nov 2024 18:48:40 +0500 Subject: [PATCH] fix extra spacing issue in cavas --- client/packages/lowcoder/src/layout/gridLayout.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/packages/lowcoder/src/layout/gridLayout.tsx b/client/packages/lowcoder/src/layout/gridLayout.tsx index ce2c7b5aa..0b88786c2 100644 --- a/client/packages/lowcoder/src/layout/gridLayout.tsx +++ b/client/packages/lowcoder/src/layout/gridLayout.tsx @@ -214,7 +214,7 @@ class GridLayout extends React.Component { */ containerHeight(): string { const { margin, rowHeight, fixedRowCount, isCanvas } = this.props as Required; - const { extraHeight, emptyRows } = this.props; + const { emptyRows } = this.props; const positionParams = genPositionParams(this.props); const { containerPadding } = positionParams; const layout = this.getUILayout(undefined, true); @@ -227,9 +227,7 @@ class GridLayout extends React.Component { nbRow * rowHeight + (nbRow - 1) * margin[1] + containerPadding[1] * 2 ); // log.debug("layout: containerHeigh=", containerHeight, " minHeight: ", this.props.minHeight); - const height = extraHeight - ? `calc(${containerHeight}px + ${extraHeight})` - : containerHeight + "px"; + const height = `${containerHeight}px`; // log.log( "containerHeight. nbRow: ", nbRow, " containerPadding: ", containerPadding[1], " containerHeight: ", containerHeight, " height: ", height); return height; }