[FIX] web_editor: do not 'reset' crop feature when changing ratio
Before this commit, when the user changed the ratio option in the crop dialog, the image zoom/rotation were reset for no apparent reason.
This commit is contained in:
@@ -1799,7 +1799,6 @@ var CropImageDialog = Dialog.extend({
|
||||
case 'ratio':
|
||||
$option.siblings().removeClass('active');
|
||||
$option.addClass('active');
|
||||
this.$cropperImage.cropper('reset');
|
||||
this.imageData.aspectRatio = value;
|
||||
this.$cropperImage.cropper('setAspectRatio', this.imageData.aspectRatio);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user