From bf64efb5a0684bd61f3c2d520253721fe98c27c4 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 20 Jun 2018 16:03:53 +0200 Subject: [PATCH] [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. --- addons/web_editor/static/src/js/widgets/widgets.js | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/web_editor/static/src/js/widgets/widgets.js b/addons/web_editor/static/src/js/widgets/widgets.js index d0df042fa82..ec747badabb 100644 --- a/addons/web_editor/static/src/js/widgets/widgets.js +++ b/addons/web_editor/static/src/js/widgets/widgets.js @@ -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;