this.$el is not the same as $('#app-content')

That is why we use `this.$el.parent()` instead
This commit is contained in:
Nazar Mokrynskyi 2014-10-15 15:06:35 +02:00
parent 33ada11a64
commit 9de874f015

View file

@ -51,7 +51,7 @@
// number of files per page, calculated dynamically // number of files per page, calculated dynamically
pageSize: function() { pageSize: function() {
return Math.ceil(this.$el.height() / 50); return Math.ceil(this.$el.parent().height() / 50);
}, },
/** /**