Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 75dd925

Browse files
author
Aqib Mirza
committed
fix: container height fix on child delete
1 parent 1252ad2 commit 75dd925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class GridLayout extends React.Component<GridLayoutProps, GridLayoutState> {
147147
);
148148
// log.debug("layout: getDrivedState. nextProps: ", nextProps.layout, " prevState: ", prevState.layout, " newLayoutBase: ", newLayoutBase, " newLayout: ", newLayout);
149149
return {
150-
layout: draggingUtils.isDragging() ? newLayout : nextProps.layout,
150+
layout: draggingUtils.isDragging() ||!childrenEqual(nextProps.children,prevState.children)? newLayout : nextProps.layout,
151151
// We need to save these props to state for using
152152
// getDerivedStateFromProps instead of componentDidMount (in which we would get extra rerender)
153153
children: nextProps.children,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /