From 0aec8647c2b2323ea5d030ef60b6dddb4d5ee9fd Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 24 Oct 2016 13:56:21 +0200 Subject: use smaller cropper on small screens Signed-off-by: Robin Appelman --- settings/js/personal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'settings') 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(); -- cgit v1.2.3