From 9de874f01533522f4c028214e85ff8363e8f2164 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Wed, 15 Oct 2014 15:06:35 +0200 Subject: [PATCH] this.$el is not the same as $('#app-content') That is why we use `this.$el.parent()` instead --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }, /**