diff options
author | Mario <mario@mariovavti.com> | 2020-06-16 07:32:55 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-06-16 07:32:55 +0000 |
commit | 70a104f24f3b3e3903d363081569be9af2052758 (patch) | |
tree | b3d82880872255536e3ec8297e3ab6e419fac5d3 /library/cropperjs/src/js/handlers.js | |
parent | 0f27db6271acb3e0e44bf870659f085c71c8f629 (diff) | |
download | volse-hubzilla-70a104f24f3b3e3903d363081569be9af2052758.tar.gz volse-hubzilla-70a104f24f3b3e3903d363081569be9af2052758.tar.bz2 volse-hubzilla-70a104f24f3b3e3903d363081569be9af2052758.zip |
upĂdate copperjs to version 1.5.7
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 |