fix #2130 (Documents view: Icon list doesn't properly resize on sidebar collapse)

This commit is contained in:
rolux 2014-02-02 19:10:01 +05:30
parent 0ac0121c97
commit 8b684f973b
2 changed files with 7 additions and 1 deletions

View file

@ -393,6 +393,10 @@ pandora.ui.documentsPanel = function(options) {
}
});
if (isItemView) {
pandora.$ui.documentsList = $list;
}
that.bindEvent(
'pandora_documentsselection.' + (isItemView ? ui.item.toLowerCase() : ''),
selectDocuments

View file

@ -41,7 +41,9 @@ pandora.ui.rightPanel = function() {
}
} else {
pandora.$ui.browser.scrollToSelection();
if (pandora.user.ui.itemView == 'clips') {
if (pandora.user.ui.itemView == 'documents') {
pandora.$ui.documentsList.size();
} else if (pandora.user.ui.itemView == 'clips') {
pandora.$ui.clipList.size();
} else if (pandora.user.ui.itemView == 'timeline') {
pandora.$ui.timeline.options({width: data.size});