summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-10-24 13:56:21 +0200
committerRobin Appelman <robin@icewind.nl>2016-10-24 13:56:21 +0200
commit0aec8647c2b2323ea5d030ef60b6dddb4d5ee9fd (patch)
tree057bfed6ab00befde885834c013eae4a881050df
parentad902d6bea06ae147db72b8bf5e0dfe5166e9d1c (diff)
downloadnextcloud-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.js4
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();