diff options
author | Nazar Mokrynskyi <nazar@mokrynskyi.com> | 2014-10-15 15:06:35 +0200 |
---|---|---|
committer | Nazar Mokrynskyi <nazar@mokrynskyi.com> | 2014-10-15 15:06:35 +0200 |
commit | 9de874f01533522f4c028214e85ff8363e8f2164 (patch) | |
tree | 3f47058f072b58b8cddf3d56958941696c8182a3 /apps/files | |
parent | 33ada11a648276986d7c0a6e21da27cd10b8823e (diff) | |
download | nextcloud-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.js | 2 |
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); }, /** |