diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-27 12:46:25 +0200 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-27 12:46:25 +0200 |
commit | 46475b81147633060cd24f026d54eee77aa559d2 (patch) | |
tree | 6ff2a13ce2ddfdace37916c63215ea336fd88f7d /apps/files | |
parent | fe54d76e3dd047876847cebb63ed469c3273cf0a (diff) | |
download | nextcloud-server-46475b81147633060cd24f026d54eee77aa559d2.tar.gz nextcloud-server-46475b81147633060cd24f026d54eee77aa559d2.zip |
Switch from Math.floor() to Math.ceil() when sending the dimension to Preview
Fixes #18203
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/filelist.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index ad3dce19778..8eaae74d3c3 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1393,8 +1393,8 @@ } urlSpec.x *= window.devicePixelRatio; urlSpec.y *= window.devicePixelRatio; - urlSpec.x = Math.floor(urlSpec.x); - urlSpec.y = Math.floor(urlSpec.y); + urlSpec.x = Math.ceil(urlSpec.x); + urlSpec.y = Math.ceil(urlSpec.y); urlSpec.forceIcon = 0; return OC.generateUrl('/core/preview.png?') + $.param(urlSpec); }, |