Merge pull request #16885 from owncloud/files-previewurlresolutionrounding

Truncate preview resolution
This commit is contained in:
Thomas Müller 2015-06-15 12:53:05 +02:00
commit 3ce616fb03
1 changed files with 3 additions and 1 deletions

View File

@ -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);
},