diff options
Diffstat (limited to 'library/cropperjs/src/js/handlers.js')
-rw-r--r-- | library/cropperjs/src/js/handlers.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/library/cropperjs/src/js/handlers.js b/library/cropperjs/src/js/handlers.js index 43f999767..63d18f90e 100644 --- a/library/cropperjs/src/js/handlers.js +++ b/library/cropperjs/src/js/handlers.js @@ -10,8 +10,6 @@ import { EVENT_CROP_END, EVENT_CROP_MOVE, EVENT_CROP_START, - MIN_CONTAINER_WIDTH, - MIN_CONTAINER_HEIGHT, REGEXP_ACTIONS, } from './constants'; import { @@ -28,15 +26,11 @@ import { export default { resize() { - const { options, container, containerData } = this; - const minContainerWidth = Number(options.minContainerWidth) || MIN_CONTAINER_WIDTH; - const minContainerHeight = Number(options.minContainerHeight) || MIN_CONTAINER_HEIGHT; - - if (this.disabled || containerData.width <= minContainerWidth - || containerData.height <= minContainerHeight) { + if (this.disabled) { return; } + const { options, container, containerData } = this; const ratio = container.offsetWidth / containerData.width; // Resize when width changed or height changed |