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
1 changed files with 1 additions and 1 deletions

View 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);
},
/**