use smaller cropper on small screens

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2016-10-24 13:56:21 +02:00
parent ad902d6bea
commit 0aec8647c2
No known key found for this signature in database
GPG Key ID: 425003AC385454C5
1 changed files with 2 additions and 2 deletions

View File

@ -148,8 +148,8 @@ function showAvatarCropper () {
onChange: saveCoords,
onSelect: saveCoords,
aspectRatio: 1,
boxHeight: 500,
boxWidth: 500,
boxHeight: Math.min(500, $('#app-content').height() -100),
boxWidth: Math.min(500, $('#app-content').width()),
setSelect: [offsetX, offsetY, selectSize, selectSize]
}, function() {
$cropper.show();