diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-28 09:33:39 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-28 09:33:39 +0200 |
commit | 8fc46ef288eaa56a11319b74f4b87c3fd6b3cabf (patch) | |
tree | 0961a9cd3ec4b624ab97dd983ccc2dd5a2200eaa /apps/files/js | |
parent | 77a874ba3858110a07295ba8ded369e462126d36 (diff) | |
parent | 46475b81147633060cd24f026d54eee77aa559d2 (diff) | |
download | nextcloud-server-8fc46ef288eaa56a11319b74f4b87c3fd6b3cabf.tar.gz nextcloud-server-8fc46ef288eaa56a11319b74f4b87c3fd6b3cabf.zip |
Merge pull request #19394 from owncloud/18203-math-ceil
Switch from Math.floor() to Math.ceil() when sending the dimension to Preview
Diffstat (limited to 'apps/files/js')
-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); }, |