Skip to content

Commit 40619e9

Browse files
fix hidden container results into white spaces
1 parent 6d4cd53 commit 40619e9

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -242,18 +242,8 @@ const ResizableChildren = React.memo((props: {
242242
children: JSX.Element | React.ReactNode;
243243
}) => {
244244
const { ref: innerRef } = useResizeDetector({
245-
skipOnMount: (
246-
props.compType === 'responsiveLayout'
247-
|| props.compType === 'columnLayout'
248-
|| props.compType === 'pageLayout'
249-
|| props.compType === 'splitLayout'
250-
|| props.compType === 'floatTextContainer'
251-
|| props.compType === 'tabbedContainer'
252-
|| props.compType === 'collapsibleContainer'
253-
|| props.compType === 'container'
254-
),
255245
refreshMode: "debounce",
256-
refreshRate: 0,
246+
refreshRate: 10,
257247
onResize: ({width, height}: ResizePayload) => props.onInnerResize(width ?? undefined, height ?? undefined),
258248
observerOptions: { box: "border-box" }
259249
});

0 commit comments

Comments
 (0)