From da27797e8d99931a299d1a8811d43d30053c69f6 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Wed, 15 Oct 2014 15:24:03 +0200 Subject: Even better - usage of this.$container instead of this.$el.parent() --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 2fbaf71c120..ca2ce1a1831 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.parent().height() / 50); + return Math.ceil(this.$container.height() / 50); }, /** -- cgit v1.2.3