Jsunit fixes

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-07-20 14:19:00 +02:00 committed by Morris Jobke
parent 4877cd050b
commit 89ee10a536
No known key found for this signature in database
GPG key ID: FE03C3A163FEDE68

View file

@ -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);
},
/**