@ckeditor/ckeditor5-image 44.2.0-alpha.3 → 44.2.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -5056,7 +5056,6 @@ const RESIZED_IMAGE_CLASS = 'image_resized';
|
|
|
5056
5056
|
}
|
|
5057
5057
|
const imageParentWidthPx = calculateResizeHostAncestorWidth(imageNodes.dom);
|
|
5058
5058
|
const imageHolderDimension = {
|
|
5059
|
-
unit: 'px',
|
|
5060
5059
|
value: new Rect(imageNodes.dom).width
|
|
5061
5060
|
};
|
|
5062
5061
|
return tryCastDimensionsToUnit(imageParentWidthPx, imageHolderDimension, targetUnit);
|
|
@@ -5269,9 +5268,7 @@ const RESIZED_IMAGE_CLASS = 'image_resized';
|
|
|
5269
5268
|
}
|
|
5270
5269
|
const imageParentWidthPx = calculateResizeHostAncestorWidth(imageNodes.dom);
|
|
5271
5270
|
const minimumImageWidth = tryParseDimensionWithUnit(window.getComputedStyle(imageNodes.dom).minWidth) || {
|
|
5272
|
-
value: 1
|
|
5273
|
-
unit: 'px'
|
|
5274
|
-
};
|
|
5271
|
+
value: 1};
|
|
5275
5272
|
const lower = Math.max(0.1, tryCastDimensionsToUnit(imageParentWidthPx, minimumImageWidth, targetUnit).value);
|
|
5276
5273
|
const upper = targetUnit === 'px' ? imageParentWidthPx : 100;
|
|
5277
5274
|
return {
|