From ec417f5ac9906d04cd25a70fa7d7166fd1332664 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 2 Feb 2014 19:17:55 +0530 Subject: [PATCH] fix #2154 (Documents view: Table list doesn't properly resize on browser collapse) --- static/js/browser.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/browser.js b/static/js/browser.js index 327bae11..2f1dd2e8 100644 --- a/static/js/browser.js +++ b/static/js/browser.js @@ -157,7 +157,11 @@ pandora.ui.browser = function() { pandora.$ui.editor && pandora.$ui.editor.gainFocus(); } } - if (pandora.user.ui.itemView == 'timeline') { + // FIXME: Why are these not handled in the 'resize' handler + // of the other SplitPanel element? + if (pandora.user.ui.itemView == 'documents') { + pandora.$ui.documentsList.size(); + } else if (pandora.user.ui.itemView == 'timeline') { pandora.$ui.timeline.options({ height: pandora.$ui.contentPanel.size(1) });