You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the image prop inside the Cropper component to "https://placehold.co/400x20"(Line 16) - this isn't required, but it makes the bug a lot more visible.
Add objectFit='cover' somewhere in the props of the Cropper component
Refresh the Codesandbox previewer (NOT your own browser page, just the thing on the right of the Codesandbox editor)
This is the result when I do this:
The problem seems to be that the Crop area is incorrectly sized and unable to cover the entire image, even on least (x1) zoom. I'm encountering this error in my own project right now, but it just happens when the component that has a Cropper component is rendered visible.
However, I have found that updating Cropper by doing something like resizing the page a little bit (Ctrl + Scroll, etc.) seems to fix it, although obviously it would be best if it worked on load.
Thanks for reading and thanks again for maintaining this project!
The text was updated successfully, but these errors were encountered:
Edit - I've been experimenting a little bit in my own project, and I think it may just be a visual bug - generating the cropped image using croppedAreaPixels and that stuff seems to produce the full-size, expected result.
Thanks for reporting this issue. I think I understand why, you can see the fix in #483.
I'm waiting for the codesandbox package to be published to ensure it does fix the issue.
Hey, first of all thanks for making this! You guys really saved me a lot of time.
My issue comes up if you go to the Basic example with hooks, then perform the following steps:
image
prop inside theCropper
component to"https://placehold.co/400x20"
(Line 16) - this isn't required, but it makes the bug a lot more visible.objectFit='cover'
somewhere in the props of theCropper
componentThis is the result when I do this:
The problem seems to be that the Crop area is incorrectly sized and unable to cover the entire image, even on least (x1) zoom. I'm encountering this error in my own project right now, but it just happens when the component that has a
Cropper
component is rendered visible.However, I have found that updating
Cropper
by doing something like resizing the page a little bit (Ctrl + Scroll, etc.) seems to fix it, although obviously it would be best if it worked on load.Thanks for reading and thanks again for maintaining this project!
The text was updated successfully, but these errors were encountered: