Skip to content

Commit

Permalink
Merge pull request #311 from aaron1604/fix-container-height-reset-on-…
Browse files Browse the repository at this point in the history
…child-delete

fix: container height fix on child delete
  • Loading branch information
FalkWolsky authored Jul 27, 2023
2 parents d9df265 + 08a6e05 commit 9047441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/packages/lowcoder/src/layout/gridLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class GridLayout extends React.Component<GridLayoutProps, GridLayoutState> {
);
// log.debug("layout: getDrivedState. nextProps: ", nextProps.layout, " prevState: ", prevState.layout, " newLayoutBase: ", newLayoutBase, " newLayout: ", newLayout);
return {
layout: draggingUtils.isDragging() ? newLayout : nextProps.layout,
layout: draggingUtils.isDragging() || !childrenEqual(nextProps.children, prevState.children) ? newLayout : nextProps.layout,
// We need to save these props to state for using
// getDerivedStateFromProps instead of componentDidMount (in which we would get extra rerender)
children: nextProps.children,
Expand Down

0 comments on commit 9047441

Please sign in to comment.