Skip to content

Commit 0ffa805

Browse files
fix extra spacing issue in cavas
1 parent 3464e6b commit 0ffa805

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

client/packages/lowcoder/src/layout/gridLayout.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class GridLayout extends React.Component<GridLayoutProps, GridLayoutState> {
214214
*/
215215
containerHeight(): string {
216216
const { margin, rowHeight, fixedRowCount, isCanvas } = this.props as Required<GridLayoutProps>;
217-
const { extraHeight, emptyRows } = this.props;
217+
const { emptyRows } = this.props;
218218
const positionParams = genPositionParams(this.props);
219219
const { containerPadding } = positionParams;
220220
const layout = this.getUILayout(undefined, true);
@@ -227,9 +227,7 @@ class GridLayout extends React.Component<GridLayoutProps, GridLayoutState> {
227227
nbRow * rowHeight + (nbRow - 1) * margin[1] + containerPadding[1] * 2
228228
);
229229
// log.debug("layout: containerHeigh=", containerHeight, " minHeight: ", this.props.minHeight);
230-
const height = extraHeight
231-
? `calc(${containerHeight}px + ${extraHeight})`
232-
: containerHeight + "px";
230+
const height = `${containerHeight}px`;
233231
// log.log( "containerHeight. nbRow: ", nbRow, " containerPadding: ", containerPadding[1], " containerHeight: ", containerHeight, " height: ", height);
234232
return height;
235233
}

0 commit comments

Comments
 (0)