From f2064d93c147a61b6f50611197f20dc6c263f2df Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Tue, 17 Sep 2002 07:21:34 +0000 Subject: [PATCH] fox for #168937. need to set width of messengerBox so that the splitter doesn't jump around for new (and existing) users. this is fallout for the sidebar being removed from the three pane. r/sr=bienvenu --- .../base/resources/content/mail3PaneWindowVertLayout.xul | 2 +- mailnews/base/resources/content/msgMail3PaneWindow.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/mailnews/base/resources/content/mail3PaneWindowVertLayout.xul b/mailnews/base/resources/content/mail3PaneWindowVertLayout.xul index cd9dd2ad4ef..c711b76009f 100644 --- a/mailnews/base/resources/content/mail3PaneWindowVertLayout.xul +++ b/mailnews/base/resources/content/mail3PaneWindowVertLayout.xul @@ -154,7 +154,7 @@ Rights Reserved. - + diff --git a/mailnews/base/resources/content/msgMail3PaneWindow.js b/mailnews/base/resources/content/msgMail3PaneWindow.js index c7f2218e57a..acca6bcf9e9 100644 --- a/mailnews/base/resources/content/msgMail3PaneWindow.js +++ b/mailnews/base/resources/content/msgMail3PaneWindow.js @@ -566,6 +566,15 @@ function OnLoadMessenger() gNotifyDefaultInboxLoadedOnStartup = true; + // fix for #168937. now that we don't have a sidebar + // users who haven't moved the splitter will + // see it jump around + var messengerBox = document.getElementById("messengerBox"); + if (!messengerBox.getAttribute("width")) { + messengerBox.setAttribute("width","500px"); + } + + //Set focus to the Thread Pane the first time the window is opened. SetFocusThreadPane(); }