From 38eb45fe2bcee05660044f26bd2153fed000274f Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Fri, 20 Feb 2004 01:21:20 +0000 Subject: [PATCH] Bug #234707 --> fixes a regression where account central is only 100px tall. --- mail/base/content/mailWindow.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/mail/base/content/mailWindow.js b/mail/base/content/mailWindow.js index 2aa87cf275e5..6e40eb17b1aa 100644 --- a/mail/base/content/mailWindow.js +++ b/mail/base/content/mailWindow.js @@ -489,17 +489,22 @@ function ShowAccountCentral() { try { - var acctCentralPage = pref.getComplexValue("mailnews.account_central_page.url", + var acctCentralPage = pref.getComplexValue("mailnews.account_central_page.url", Components.interfaces.nsIPrefLocalizedString).data; GetMessagePane().collapsed = true; document.getElementById("threadpane-splitter").collapsed = true; gSearchBox.collapsed = true; + GetThreadTree().collapsed = true; + document.getElementById('messengerBox').setAttribute('flex', '1'); document.getElementById("accountCentralBox").collapsed = false; - window.frames["accountCentralPane"].location = acctCentralPage; + + window.frames["accountCentralPane"].location = acctCentralPage; + if (!IsFolderPaneCollapsed()) - GetFolderTree().focus(); - gAccountCentralLoaded = true; + GetFolderTree().focus(); + + gAccountCentralLoaded = true; } catch (ex) { @@ -519,9 +524,11 @@ function HideAccountCentral() document.getElementById("accountCentralBox").collapsed = true; GetThreadTree().collapsed = false; gSearchBox.collapsed = false; + var threadPaneSplitter = document.getElementById("threadpane-splitter"); threadPaneSplitter.collapsed = false; GetMessagePane().collapsed = threadPaneSplitter.getAttribute("state") == "collapsed"; + document.getElementById('messengerBox').removeAttribute('flex'); gAccountCentralLoaded = false; } catch (ex)