more things can not exist on resize

This commit is contained in:
j 2015-04-08 13:43:20 +02:00
parent ca63fa7b93
commit a4e0d78d54

View file

@ -21,42 +21,44 @@ pandora.ui.rightPanel = function() {
var clipsItems, previousClipsItems; var clipsItems, previousClipsItems;
if (!pandora.user.ui.item) { if (!pandora.user.ui.item) {
pandora.resizeFilters(); pandora.resizeFilters();
pandora.$ui.list.size(); pandora.$ui.list && pandora.$ui.list.size();
if (pandora.user.ui.listView == 'clips') { if (pandora.user.ui.listView == 'clips') {
clipsItems = pandora.getClipsItems(); if (pandora.$ui.list) {
previousClipsItems = pandora.getClipsItems(pandora.$ui.list.options('width')); clipsItems = pandora.getClipsItems();
pandora.$ui.list.options({width: data.size}); previousClipsItems = pandora.getClipsItems(pandora.$ui.list.options('width'));
if (clipsItems != previousClipsItems) { pandora.$ui.list.options({width: data.size});
Ox.Request.clearCache(); // fixme if (clipsItems != previousClipsItems) {
pandora.$ui.list.reloadList(true); Ox.Request.clearCache(); // fixme
pandora.$ui.list.reloadList(true);
}
} }
} else if (pandora.user.ui.listView == 'timelines') { } else if (pandora.user.ui.listView == 'timelines') {
pandora.$ui.list.options({width: data.size}); pandora.$ui.list && pandora.$ui.list.options({width: data.size});
} else if (pandora.user.ui.listView == 'map') { } else if (pandora.user.ui.listView == 'map') {
pandora.$ui.map.resizeMap(); pandora.$ui.map && pandora.$ui.map.resizeMap();
} else if (pandora.user.ui.listView == 'calendar') { } else if (pandora.user.ui.listView == 'calendar') {
pandora.$ui.calendar.resizeCalendar(); pandora.$ui.calendar && pandora.$ui.calendar.resizeCalendar();
} else if (pandora.user.ui.listView == 'video') { } else if (pandora.user.ui.listView == 'video') {
pandora.$ui.list.resize(); pandora.$ui.list && pandora.$ui.list.resize();
} }
} else { } else {
pandora.$ui.browser.scrollToSelection(); pandora.$ui.browser && pandora.$ui.browser.scrollToSelection();
if (pandora.user.ui.itemView == 'documents') { if (pandora.user.ui.itemView == 'documents') {
pandora.$ui.documents.updateSize(); pandora.$ui.documents && pandora.$ui.documents.updateSize();
} else if (pandora.user.ui.itemView == 'clips') { } else if (pandora.user.ui.itemView == 'clips') {
pandora.$ui.clipList.size(); pandora.$ui.clipList && pandora.$ui.clipList.size();
} else if (pandora.user.ui.itemView == 'timeline') { } else if (pandora.user.ui.itemView == 'timeline') {
pandora.$ui.timeline.options({width: data.size}); pandora.$ui.timeline && pandora.$ui.timeline.options({width: data.size});
} else if (pandora.user.ui.itemView == 'player') { } else if (pandora.user.ui.itemView == 'player') {
pandora.$ui.player.options({width: data.size}); pandora.$ui.player && pandora.$ui.player.options({width: data.size});
} else if (pandora.user.ui.itemView == 'editor') { } else if (pandora.user.ui.itemView == 'editor') {
pandora.$ui.editor && pandora.$ui.editor.options({width: data.size}); pandora.$ui.editor && pandora.$ui.editor.options({width: data.size});
} else if (pandora.user.ui.listView == 'map') { } else if (pandora.user.ui.listView == 'map') {
pandora.$ui.map.resizeMap(); pandora.$ui.map && pandora.$ui.map.resizeMap();
} else if (pandora.user.ui.listView == 'calendar') { } else if (pandora.user.ui.listView == 'calendar') {
pandora.$ui.calendar.resizeCalendar(); pandora.$ui.calendar && pandora.$ui.calendar.resizeCalendar();
} else if (pandora.user.ui.listView == 'video') { } else if (pandora.user.ui.listView == 'video') {
pandora.$ui.list.size(); pandora.$ui.list && pandora.$ui.list.size();
} }
} }
} }