Skip to content

Commit

Permalink
Use max-height stretch property rather than the deprecated fill-avail…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
sekoyo committed May 23, 2018
1 parent 2b4f99e commit 94ce943
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/ReactCrop.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
.ReactCrop__image {
display: block;
max-width: 100%;
max-height: fill-available; }
max-height: -webkit-fill-available;
max-height: -moz-available;
max-height: stretch; }
.ReactCrop--crop-invisible .ReactCrop__image {
opacity: 0.5; }
.ReactCrop__crop-selection {
Expand Down
4 changes: 3 additions & 1 deletion lib/ReactCrop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ $drag-handle-border: 1px solid rgba(255,255,255,0.7) !default;
&__image {
display: block;
max-width: 100%;
max-height: fill-available;
max-height: -webkit-fill-available;
max-height: -moz-available;
max-height: stretch;
}

&--crop-invisible &__image {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-image-crop",
"version": "4.0.0",
"version": "4.0.1",
"description": "A responsive image cropping tool for React",
"repository": "https://github.com/DominicTobias/react-image-crop",
"main": "index.js",
Expand Down

0 comments on commit 94ce943

Please sign in to comment.