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

Use Resize observer to refresh the cropper #443

Merged
merged 1 commit into from
Feb 12, 2023
Merged

Conversation

ValentinH
Copy link
Owner

@ValentinH ValentinH commented Feb 11, 2023

This should fix the issues where the cropper is shown inside a container whose size can change.
Unfortunately, we are not able to detect if the change is due to a transform: scale().

📦 Published PR as canary version: 4.6.4--canary.443.ffa6016.0

✨ Test out this PR locally via:

npm install [email protected]
# or 
yarn add [email protected]

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 12, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ffa6016:

Sandbox Source
react-easy-crop Configuration

@ValentinH ValentinH force-pushed the resize-observer branch 2 times, most recently from 42bbd1f to f0c78d8 Compare February 12, 2023 19:26
@ValentinH ValentinH added enhancement New feature or request minor Increment the minor version when merged labels Feb 12, 2023
@ValentinH ValentinH merged commit 3fa51af into main Feb 12, 2023
@ValentinH ValentinH deleted the resize-observer branch February 12, 2023 20:17
@github-actions
Copy link

🚀 PR was released in v4.7.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor Increment the minor version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant