Bug #321551 --> message list pane: wrong scroll position if a mail folder has been entered from an account's top level. patch by mcow/neil. sr=mscott

This commit is contained in:
scott%scott-macgregor.org 2007-02-23 07:23:36 +00:00
parent 828ddbe44e
commit 4476b98668

View File

@ -546,6 +546,9 @@ function ShowingThreadPane()
var threadPaneSplitter = document.getElementById("threadpane-splitter");
threadPaneSplitter.collapsed = false;
GetMessagePane().collapsed = (threadPaneSplitter.getAttribute("state") == "collapsed");
// XXX We need to force the tree to refresh its new height
// so that it will correctly scroll to the newest message
GetThreadTree().boxObject.height;
document.getElementById("key_toggleMessagePane").removeAttribute("disabled");
}