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
This commit is contained in:
neil%parkwaycc.co.uk
2005-10-24 23:06:47 +00:00
parent 44f43274e4
commit 907b9f37e7
2 changed files with 6 additions and 1 deletions

View File

@@ -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) {

View File

@@ -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);