fix: auto cropper on image upload selects maximum image area by default

This commit is contained in:
Accalia de Elementia
2017-03-06 13:14:15 +00:00
parent f6721c249f
commit 743a7e00b4

View File

@@ -42,6 +42,7 @@ define('pictureCropper', ['translator', 'cropper'], function (translator, croppe
var img = document.getElementById('cropped-image');
var cropperTool = new cropper.default(img, {
aspectRatio: data.aspectRatio,
autoCropArea: 1,
viewMode: 1,
cropmove: function () {
if (data.restrictImageDimension) {