From 43b11a4fe7b3d2c4b41f33d1b3291d17cc32dbb0 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 20 Oct 2011 16:10:53 +0000 Subject: [PATCH] handle window resize when in timelines view --- static/js/pandora.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/pandora.js b/static/js/pandora.js index ee79f447a..34aa605f7 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -174,7 +174,9 @@ Ox.load({ pandora.$ui.info.resizeInfo(); if (!pandora.user.ui.item) { pandora.resizeGroups(pandora.$ui.rightPanel.width()); - if (pandora.user.ui.listView == 'map') { + if (pandora.user.ui.listView == 'timelines') { + pandora.$ui.list.options({width: window.innerWidth - pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1}); + } else if (pandora.user.ui.listView == 'map') { pandora.$ui.map.resizeMap(); } else if (pandora.user.ui.listView == 'calendar') { pandora.$ui.calendar.resizeCalendar();