diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-08-12 09:33:11 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-09-14 10:17:24 +0200 |
commit | 1601e8acfe3df25d29760edaaa9ad29259f88c11 (patch) | |
tree | a090a64b3110bedb02c12c4a72d7566eac6fb258 /core/js/jquery.avatar.js | |
parent | 211a2437840ec6897e377a5025f85aec27618263 (diff) | |
download | nextcloud-server-1601e8acfe3df25d29760edaaa9ad29259f88c11.tar.gz nextcloud-server-1601e8acfe3df25d29760edaaa9ad29259f88c11.zip |
Added js tests for jquery.avatar
* Ceil avatar request size
Diffstat (limited to 'core/js/jquery.avatar.js')
-rw-r--r-- | core/js/jquery.avatar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js index b0d1ca7d88f..552657877e7 100644 --- a/core/js/jquery.avatar.js +++ b/core/js/jquery.avatar.js @@ -77,7 +77,7 @@ var url = OC.generateUrl( '/avatar/{user}/{size}', - {user: user, size: size * window.devicePixelRatio}); + {user: user, size: Math.ceil(size * window.devicePixelRatio)}); $.get(url, function(result) { if (typeof(result) === 'object') { |