diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index b8df55760b..2fbaf71c12 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); }, /**