during drag clip to edit, left panel section != ui.section, so pass section to utility functions (resizeFolders, getFoldersWidth, getFoldersHeight, getInfoHeight, getAllItemsTitle)

This commit is contained in:
rolux 2013-07-18 10:42:16 +00:00
commit 197c5ca9ff
3 changed files with 38 additions and 28 deletions

View file

@ -11,8 +11,6 @@ pandora.ui.folders = function(section) {
}),
folderItems = section == 'items' ? 'Lists' : Ox.toTitleCase(section),
folderItem = folderItems.slice(0, -1);
//var $sections = [];
pandora.$ui.allItems = pandora.ui.allItems(section).appendTo(that);
pandora.$ui.folder = [];
pandora.$ui.folderBrowser = {};
@ -317,7 +315,6 @@ pandora.ui.folders = function(section) {
pandora.resizeFolders();
}
});
//$sections.push(pandora.$section[i]);
pandora.$ui.folderList[folder.id] = pandora.ui.folderList(folder.id, section)
.bindEvent({
selectnext: function() {
@ -333,7 +330,7 @@ pandora.ui.folders = function(section) {
pandora.$ui.folder.forEach(function($folder) {
that.append($folder);
});
pandora.resizeFolders();
pandora.resizeFolders(section);
pandora.selectList();
}
}