summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorNazar Mokrynskyi <nazar@mokrynskyi.com>2014-10-15 15:06:35 +0200
committerNazar Mokrynskyi <nazar@mokrynskyi.com>2014-10-15 15:06:35 +0200
commit9de874f01533522f4c028214e85ff8363e8f2164 (patch)
tree3f47058f072b58b8cddf3d56958941696c8182a3 /apps/files
parent33ada11a648276986d7c0a6e21da27cd10b8823e (diff)
downloadnextcloud-server-9de874f01533522f4c028214e85ff8363e8f2164.tar.gz
nextcloud-server-9de874f01533522f4c028214e85ff8363e8f2164.zip
this.$el is not the same as $('#app-content')
That is why we use `this.$el.parent()` instead
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index b8df55760be..2fbaf71c120 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -51,7 +51,7 @@
// number of files per page, calculated dynamically
pageSize: function() {
- return Math.ceil(this.$el.height() / 50);
+ return Math.ceil(this.$el.parent().height() / 50);
},
/**