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

Crop size is not calculated correctly #453

Closed
khuongtp opened this issue Mar 22, 2023 · 2 comments
Closed

Crop size is not calculated correctly #453

khuongtp opened this issue Mar 22, 2023 · 2 comments

Comments

@khuongtp
Copy link

Describe the bug
Cropsize width is not calculated correctly
image
Cropper is inside of chakra-ui modal btw.
But when I resize chrome viewport, it works
image

Expected behavior
Cropsize width should take up all available space so that user can capture the whole width of the image

@ValentinH
Copy link
Owner

This is a known issue when displaying the Cropper inside a modal
Unfortunately, there isn't much we can do as part of the lib (unless someone proves me wrong).

You can have a look to similar issues such as #400 for workarounds.

@khuongtp
Copy link
Author

Thank you, I'll take a look

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

2 participants