diff options
-rw-r--r-- | apps/files/js/filelist.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index b558e439e2e..fd20ebe8321 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -99,11 +99,12 @@ /** * Number of files per page + * Always show a minimum of 1 * * @return {int} page size */ pageSize: function() { - return Math.ceil(this.$container.height() / 50); + return Math.max(Math.ceil(this.$container.height() / 50), 1); }, /** |