handle vertical calendar resize

This commit is contained in:
rolux 2011-10-08 19:09:25 +00:00
parent 39b7f6b08f
commit 8dedbd1bae
3 changed files with 8 additions and 8 deletions

View file

@ -26,7 +26,6 @@ appPanel
Ox.load({
UI: {
//debug: true,
hideScreen: false,
loadImages: true,
showScreen: true,

View file

@ -29,7 +29,7 @@ pandora.ui.browser = function() {
if (pandora.user.ui.listView == 'map') {
pandora.$ui.map.resizeMap();
} else if (pandora.user.ui.listView == 'calendar') {
// ...
pandora.$ui.calendar.resizeCalendar();
}
},
resizeend: function(data) {
@ -41,7 +41,7 @@ pandora.ui.browser = function() {
if (pandora.user.ui.listView == 'map') {
pandora.$ui.map.resizeMap();
} else if (pandora.user.ui.listView == 'calendar') {
// ...
pandora.$ui.calendar.resizeCalendar();
}
}
});
@ -91,7 +91,7 @@ pandora.ui.browser = function() {
if (pandora.user.ui.itemView == 'map') {
pandora.ui.$map.resizeMap();
} else if (pandora.user.ui.itemView == 'calendar') {
// ...
pandora.ui.$calendar.resizeCalendar();
}
},
select: function(data) {
@ -109,7 +109,7 @@ pandora.ui.browser = function() {
if (pandora.user.ui.itemView == 'map') {
pandora.$ui.map.resizeMap();
} else if (pandora.user.ui.itemView == 'calendar') {
// ...
pandora.$ui.calendar.resizeCalendar();
}
},
pandora_icons: function(data) {

View file

@ -180,6 +180,8 @@ pandora.ui.navigationView = function(type, videoRatio) {
}
})
);
// needed for resize handlers further up
pandora.$ui.map = $element;
} else {
@ -205,6 +207,8 @@ pandora.ui.navigationView = function(type, videoRatio) {
select: selectItem
})
);
// needed for resize handlers further up
pandora.$ui.calendar = $element;
});
}
@ -285,9 +289,6 @@ pandora.ui.navigationView = function(type, videoRatio) {
pandora.user.ui.mapSelection = '';
}
// fixme: this is needed for some resize handlers further up
pandora.$ui[type] = $element;
return that;
};