[BUGFIX] Initialize selected crop variant on modal open
In the cropper modal the initial aspect ratio is not respected. This has been fixed by triggering the update method when the cropper modal is initialized. Also by using CropperJs' built-in responsive feature we avoid tinkering with pixel sizes when window is resized and optimize ui to be more responsive. Resolves: #95204 Releases: master Change-Id: I5fe135220ffa88780b10ac38fa2d14e08bdd7a2e Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71087 Tested-by:core-ci <typo3@b13.com> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de>
Showing
- Build/Sources/Sass/component/_modal.scss 37 additions, 4 deletionsBuild/Sources/Sass/component/_modal.scss
- Build/Sources/Sass/typo3/_element_cropper.scss 13 additions, 4 deletionsBuild/Sources/Sass/typo3/_element_cropper.scss
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/ImageManipulation.ts 5 additions, 21 deletions.../backend/Resources/Public/TypeScript/ImageManipulation.ts
- typo3/sysext/backend/Resources/Private/Templates/ImageManipulation/ImageManipulationWizard.html 5 additions, 4 deletions.../Templates/ImageManipulation/ImageManipulationWizard.html
- typo3/sysext/backend/Resources/Public/Css/backend.css 1 addition, 1 deletiontypo3/sysext/backend/Resources/Public/Css/backend.css
- typo3/sysext/backend/Resources/Public/JavaScript/ImageManipulation.js 1 addition, 1 deletion.../backend/Resources/Public/JavaScript/ImageManipulation.js
Please register or sign in to comment