Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize functionality not working after 10.4.14, its woks fine in 10.4.13 #963

Open
dheerajkp77 opened this issue Jan 23, 2025 · 0 comments

Comments

@dheerajkp77
Copy link

Resize functionality is not working in 10.4.14

onResize={(e, direction, ref, delta, position) => { this.setState({ width: ref.offsetWidth, height: ref.offsetHeight, ...position, }); }}
The resize icon is not showing after 10.4.14 so, I downgraded to 10.4.13

Here is my code in which i'm facing the issue
<Rnd key={element.id} default={{ ...element.position, ...element.styles, }} scale={Number(scale)} disableDragging={preview} dragGrid={snap ? [20, 20] : [1, 1]} onDragStop={(e, d) => { updatePosition(element.id, d.x, d.y); }} onResizeStop={( e, direction, ref, delta, position ) => { updateSize( element.id, ref.offsetWidth, ref.offsetHeight ); updatePosition( element.id, position.x, position.y ); }} enableResizing={{ topRight: false, }} minWidth={element?.minWidth || 250} minHeight={element?.minHeight || 20} bounds="parent" > {renderComponent(element.type, props)} </Rnd>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant