forked from 0x2620/pandora
don't throw js error on window resize before we have a leftPanel
This commit is contained in:
parent
ad1daf182c
commit
b2d60f20d3
1 changed files with 1 additions and 1 deletions
|
@ -1041,7 +1041,7 @@ pandora.resizeFolders = function() {
|
||||||
|
|
||||||
pandora.resizeWindow = function() {
|
pandora.resizeWindow = function() {
|
||||||
// FIXME: a lot of this throws errors on load
|
// 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();
|
pandora.resizeFolders();
|
||||||
if (!pandora.user.ui.item) {
|
if (!pandora.user.ui.item) {
|
||||||
pandora.resizeFilters(pandora.$ui.rightPanel.width());
|
pandora.resizeFilters(pandora.$ui.rightPanel.width());
|
||||||
|
|
Loading…
Reference in a new issue