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:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user