add placeholders for empty folders, fixes #250

This commit is contained in:
rolux 2014-02-03 08:58:23 +00:00
commit f8890ed015
6 changed files with 61 additions and 17 deletions

View file

@ -991,7 +991,7 @@ pandora.getFoldersHeight = function(section) {
var height = 0;
pandora.site.sectionFolders[section].forEach(function(folder, i) {
height += 16 + pandora.user.ui.showFolder[section][folder.id] * (
!!folder.showBrowser * 40 + folder.items * 16
!!(folder.showBrowser && folder.items) * 40 + (folder.items || 1) * 16
);
});
return height;