Skip to content

Commit

Permalink
fix extra spacing issue in cavas
Browse files Browse the repository at this point in the history
  • Loading branch information
raheeliftikhar5 committed Nov 5, 2024
1 parent 3464e6b commit 0ffa805
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/packages/lowcoder/src/layout/gridLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class GridLayout extends React.Component<GridLayoutProps, GridLayoutState> {
*/
containerHeight(): string {
const { margin, rowHeight, fixedRowCount, isCanvas } = this.props as Required<GridLayoutProps>;
const { extraHeight, emptyRows } = this.props;
const { emptyRows } = this.props;
const positionParams = genPositionParams(this.props);
const { containerPadding } = positionParams;
const layout = this.getUILayout(undefined, true);
Expand All @@ -227,9 +227,7 @@ class GridLayout extends React.Component<GridLayoutProps, GridLayoutState> {
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;
}
Expand Down

0 comments on commit 0ffa805

Please sign in to comment.