]> source.dussan.org Git - nextcloud-server.git/commitdiff
this.$el is not the same as $('#app-content')
authorNazar Mokrynskyi <nazar@mokrynskyi.com>
Wed, 15 Oct 2014 13:06:35 +0000 (15:06 +0200)
committerNazar Mokrynskyi <nazar@mokrynskyi.com>
Wed, 15 Oct 2014 13:06:35 +0000 (15:06 +0200)
That is why we use `this.$el.parent()` instead

apps/files/js/filelist.js

index b8df55760be41270d91b4deb5546b9808d2687d2..2fbaf71c120f5dce4922f1818ac8084da53b1cc3 100644 (file)
@@ -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);
                },
 
                /**