Merge pull request #16885 from owncloud/files-previewurlresolutionrounding
Truncate preview resolution
This commit is contained in:
commit
3ce616fb03
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue