@libs-ui/components-image-editor 0.2.356-40 → 0.2.356-42
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.
|
@@ -897,7 +897,6 @@ class LibsUiComponentsImageEditorComponent {
|
|
|
897
897
|
let newHeight = newWidth / ratio;
|
|
898
898
|
newHeight = Math.min(this.resizeData().height, this.containerHeight());
|
|
899
899
|
newWidth = newHeight * ratio;
|
|
900
|
-
Math.min(this.resizeData().height, this.containerHeight());
|
|
901
900
|
const top = currTop + (currHeight - newHeight) / 2;
|
|
902
901
|
const left = currLeft + (currWidth - newWidth) / 2;
|
|
903
902
|
const movementY = currTop - top;
|