diff options
author | Robin Appelman <robin@icewind.nl> | 2016-10-24 13:56:21 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-10-24 13:56:21 +0200 |
commit | 0aec8647c2b2323ea5d030ef60b6dddb4d5ee9fd (patch) | |
tree | 057bfed6ab00befde885834c013eae4a881050df | |
parent | ad902d6bea06ae147db72b8bf5e0dfe5166e9d1c (diff) | |
download | nextcloud-server-0aec8647c2b2323ea5d030ef60b6dddb4d5ee9fd.tar.gz nextcloud-server-0aec8647c2b2323ea5d030ef60b6dddb4d5ee9fd.zip |
use smaller cropper on small screens
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | settings/js/personal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index 34fffe7ddde..ae23782443c 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -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(); |