From 6ec9c99d48571103eafb0997cd3434baa421ccbf Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi <nazar@mokrynskyi.com> Date: Wed, 15 Oct 2014 14:16:17 +0200 Subject: [PATCH] Use this.$el instead of the absolute selector --- 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 eafef6c2a5..b8df55760b 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($('#app-content').height() / 50); + return Math.ceil(this.$el.height() / 50); }, /** -- GitLab