use smaller cropper on small screens
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
ad902d6bea
commit
0aec8647c2
|
@ -148,8 +148,8 @@ function showAvatarCropper () {
|
||||||
onChange: saveCoords,
|
onChange: saveCoords,
|
||||||
onSelect: saveCoords,
|
onSelect: saveCoords,
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
boxHeight: 500,
|
boxHeight: Math.min(500, $('#app-content').height() -100),
|
||||||
boxWidth: 500,
|
boxWidth: Math.min(500, $('#app-content').width()),
|
||||||
setSelect: [offsetX, offsetY, selectSize, selectSize]
|
setSelect: [offsetX, offsetY, selectSize, selectSize]
|
||||||
}, function() {
|
}, function() {
|
||||||
$cropper.show();
|
$cropper.show();
|
||||||
|
|
Loading…
Reference in New Issue