mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Jsunit fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
4877cd050b
commit
89ee10a536
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue