diff options
Diffstat (limited to 'settings')
-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(); |