ValentinH / react-easy-crop

A React component to crop images/videos with easy interactions
https://valentinh.github.io/react-easy-crop/
MIT License
2.34k stars 167 forks source link

`style.cropAreaStyle.width` and `height` don't work. They are still certain values when set to be `100%`. #539

Closed powerseed closed 6 months ago

powerseed commented 6 months ago

I had to use a css file to set

.reactEasyCrop_CropArea {
    width: 100% !important;
    height: 100% !important;
}

so that the crop area will take 100% of reactEasyCrop_Container's dimensions.

powerseed commented 6 months ago

It seems that this issue was also caused by the possible internal conflict described in https://github.com/ValentinH/react-easy-crop/issues/540#issuecomment-2121755669

I am closing this. My apologies!