diff --git a/dist/tinycrop.js b/dist/tinycrop.js index 59ac6ca..7baca06 100644 --- a/dist/tinycrop.js +++ b/dist/tinycrop.js @@ -198,7 +198,7 @@ return /******/ (function(modules) { // webpackBootstrap if (isInteger(boundsHeight)) { height = boundsHeight; } else if (isPercent(boundsHeight)) { - height = Math.round(width * getPercent(boundsHeight) / 100); + height = Math.round(parent.clientHeight * getPercent(boundsHeight) / 100); } else if (image && image.hasLoaded && isAuto(boundsHeight)) { height = Math.floor(width / image.getAspectRatio()); } else { @@ -1737,4 +1737,4 @@ return /******/ (function(modules) { // webpackBootstrap /***/ } /******/ ]) }); -; \ No newline at end of file +;