fix #2302 (Regression: Using find in Manage Favorite/Featured breaks layout)

This commit is contained in:
rolux 2014-02-13 15:53:26 +00:00 committed by j
commit cc5ee75564
4 changed files with 26 additions and 9 deletions

View file

@ -1023,7 +1023,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 && folder.items) * 40 + (folder.items || 1) * 16
!!(folder.showBrowser && folder.hasItems) * 40 + (folder.items || 1) * 16
);
});
return height;
@ -1035,7 +1035,7 @@ pandora.getFoldersWidth = function(section) {
if (
pandora.$ui.appPanel
&& pandora.getFoldersHeight(section)
> window.innerHeight - 20 - 24 -16 - 1 - pandora.getInfoHeight(section)
> window.innerHeight - 20 - 24 - 16 - 1 - pandora.getInfoHeight(section)
) {
width -= Ox.UI.SCROLLBAR_SIZE;
}