don't throw js error on window resize before we have a leftPanel

This commit is contained in:
rolux 2012-04-19 14:34:15 +00:00
parent ad1daf182c
commit b2d60f20d3

View file

@ -1041,7 +1041,7 @@ pandora.resizeFolders = function() {
pandora.resizeWindow = function() {
// FIXME: a lot of this throws errors on load
pandora.$ui.leftPanel.size(2, pandora.getInfoHeight(true));
pandora.$ui.leftPanel && pandora.$ui.leftPanel.size(2, pandora.getInfoHeight(true));
pandora.resizeFolders();
if (!pandora.user.ui.item) {
pandora.resizeFilters(pandora.$ui.rightPanel.width());