[FIX] web_editor: allow better usability to crop all image zones
Before this commit, when rotating an image so that it overflew the cropper canvas, it was not possible to unzoom on some part of the image. Now, with the new set of options used by this commit, the cropping zone and the image can be moved independently allowing to do everything. Part of https://github.com/odoo/odoo/pull/36880 task-2059480
This commit is contained in:
@@ -116,8 +116,9 @@ var CropImageDialog = Dialog.extend({
|
||||
}
|
||||
}
|
||||
this.$cropperImage.cropper({
|
||||
viewMode: 1,
|
||||
autoCropArea: 1,
|
||||
viewMode: 2,
|
||||
dragMode: 'move',
|
||||
autoCropArea: 1.0,
|
||||
aspectRatio: ratio,
|
||||
data: _.pick(data, 'x', 'y', 'width', 'height', 'rotate', 'scaleX', 'scaleY')
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user