From 907b9f37e7b91849a949bf2b0a5605a28829f679 Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Mon, 24 Oct 2005 23:06:47 +0000 Subject: [PATCH] Bug 121176 Turn off title setting when the message pane is collapsed r+sr=dmose git-svn-id: svn://10.0.0.236/trunk@182926 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/base/resources/content/commandglue.js | 4 ++++ mozilla/mailnews/base/resources/content/threadPane.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mozilla/mailnews/base/resources/content/commandglue.js b/mozilla/mailnews/base/resources/content/commandglue.js index 140863b5cc2..877232de7da 100644 --- a/mozilla/mailnews/base/resources/content/commandglue.js +++ b/mozilla/mailnews/base/resources/content/commandglue.js @@ -778,9 +778,13 @@ function ChangeMessagePaneVisibility(now_hidden) node.hidden = now_hidden; if (gDBView) { + // clear the subject, collapsing won't automatically do this + setTitleFromFolder(GetThreadPaneFolder(), null); // the collapsed state is the state after we released the mouse // so we take it as it is gDBView.suppressMsgDisplay = now_hidden; + // set the subject, uncollapsing won't automatically do this + gDBView.reloadMessage(); } var event = document.createEvent('Events'); if (now_hidden) { diff --git a/mozilla/mailnews/base/resources/content/threadPane.js b/mozilla/mailnews/base/resources/content/threadPane.js index 44c6a59aca2..9d5200dddd3 100644 --- a/mozilla/mailnews/base/resources/content/threadPane.js +++ b/mozilla/mailnews/base/resources/content/threadPane.js @@ -104,7 +104,8 @@ nsMsgDBViewCommandUpdater.prototype = displayMessageChanged : function(aFolder, aSubject, aKeywords) { - setTitleFromFolder(aFolder, aSubject); + if (!gDBView.suppressMsgDisplay) + setTitleFromFolder(aFolder, aSubject); ClearPendingReadTimer(); // we are loading / selecting a new message so kill the mark as read timer for the currently viewed message gHaveLoadedMessage = true; SetKeywords(aKeywords);