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

Dimensions Config #33

Open
JamesDorrian opened this issue Mar 2, 2018 · 1 comment
Open

Dimensions Config #33

JamesDorrian opened this issue Mar 2, 2018 · 1 comment

Comments

@JamesDorrian
Copy link

If I put the inside a div with width 1000px, the cropper takes the image src and stretches it to width 1000px.

Is there a way around this?

@JamesDorrian
Copy link
Author

The cropping component currently takes the width to be 100%, thus filling the parent container, regardless of the image's original dimensions.

I have a fix available here for anyone who is interested: https://github.com/JamesDorrian/react-image-cropper-dynamic

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