Skip to content
Snippets Groups Projects
Commit 2ccdcaa9 authored by Andreas Fernandez's avatar Andreas Fernandez
Browse files

[BUGFIX] `ceil()` dimensions in CropperEvent

The dimensions available in `CropperEvent` are fractions in some cases,
that probably happens when an image gets upscaled. This causes issues
as those dimensions are apparently adjusted downward in the cropper
library, resulting in dimension reduced by 1px. To solve this issue,
`Math.ceil()` is applied to round up incoming dimensions.

Resolves: #96722
Releases: main, 11.5
Change-Id: I537bccd32a634805a37957bea59ec51e5e856272
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78769


Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent b6378d2f
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment