summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-06-15 12:53:05 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-06-15 12:53:05 +0200
commit3ce616fb0375c1100dea9c9f978c3a6a185710a8 (patch)
tree6babfa1e7a9bf4e8c0aca26dc29843c74eb3d3c8
parentb6165b68655fdf957d9b63ab982a5f8724fcc3de (diff)
parentd256425abadd4f1ab247d0e0efdca6319c527ca9 (diff)
downloadnextcloud-server-3ce616fb0375c1100dea9c9f978c3a6a185710a8.tar.gz
nextcloud-server-3ce616fb0375c1100dea9c9f978c3a6a185710a8.zip
Merge pull request #16885 from owncloud/files-previewurlresolutionrounding
Truncate preview resolution
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index e88ea1ad5d7..b6f464bfd29 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1173,8 +1173,10 @@
if (!urlSpec.y) {
urlSpec.y = this.$table.data('preview-y') || 36;
}
- urlSpec.y *= window.devicePixelRatio;
urlSpec.x *= window.devicePixelRatio;
+ urlSpec.y *= window.devicePixelRatio;
+ urlSpec.x = Math.floor(urlSpec.x);
+ urlSpec.y = Math.floor(urlSpec.y);
urlSpec.forceIcon = 0;
return OC.generateUrl('/core/preview.png?') + $.param(urlSpec);
},