Skip to content

Max-width 100% and extra param for onImageLoaded

Compare
Choose a tag to compare
@sekoyo sekoyo released this 25 Feb 15:23
· 632 commits to master since this release

It was non-obvious that .ReactCrop--image-copy also needed max-width set as seen in #21. Also by providing the image DOM element to onImageLoaded the user could use the image dimensions to decide on an optimum crop (e.g. depending on landscape vs portrait)