Skip to content

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

Description

@dheerajkp77

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions