diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-24 15:31:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-24 15:31:23 +0200 |
commit | 37782b1084275d54474700e4ae7863b18e23dc04 (patch) | |
tree | 9481ad7bf07ae049a77dd95a0b09e43a7fb63c59 /apps/files_sharing/js/public.js | |
parent | 2ec5d2a6ded8096431978638013df4ae5d711cb3 (diff) | |
parent | ede6472e52ab019c377640eb37ca3499d51ad8be (diff) | |
download | nextcloud-server-37782b1084275d54474700e4ae7863b18e23dc04.tar.gz nextcloud-server-37782b1084275d54474700e4ae7863b18e23dc04.zip |
Merge pull request #11573 from nextcloud/gridview-table
Files grid view
Diffstat (limited to 'apps/files_sharing/js/public.js')
-rw-r--r-- | apps/files_sharing/js/public.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 2b7cea8d0dc..1dd9f5af6c7 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -229,10 +229,10 @@ OCA.Sharing.PublicApp = { this.fileList.generatePreviewUrl = function (urlSpec) { urlSpec = urlSpec || {}; if (!urlSpec.x) { - urlSpec.x = 32; + urlSpec.x = this.$table.data('preview-x') || 32; } if (!urlSpec.y) { - urlSpec.y = 32; + urlSpec.y = this.$table.data('preview-y') || 32; } urlSpec.x *= window.devicePixelRatio; urlSpec.y *= window.devicePixelRatio; |