fix for #67677. on loading a folder, if there is no new messages

scroll to the top.  r=mscott, sr=bienvenu
This commit is contained in:
sspitzer%netscape.com 2001-04-04 04:43:15 +00:00
Родитель 39798953db
Коммит 441763a059
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -145,7 +145,12 @@ var folderListener = {
if (!scrolled) {
// if we didn't just scroll, scroll to the first new message
// don't select it though
ScrollToMessage(nsMsgNavigationType.firstNew, true, false /* selectMessage */);
scrolled = ScrollToMessage(nsMsgNavigationType.firstNew, true, false /* selectMessage */);
// if we failed to find a new message, scroll to the top
if (!scrolled) {
EnsureRowInThreadOutlinerIsVisible(0);
}
}
if(showPerformance) {

Просмотреть файл

@ -164,7 +164,6 @@ function CrossFolderNavigation(type, supportsFolderPane )
function ScrollToMessage(type, wrap, selectMessage)
{
dump("XXX ScrollToMessage " + type + "," + selectMessage + "\n");
try {
var outlinerView = gDBView.QueryInterface(Components.interfaces.nsIOutlinerView);
var outlinerSelection = outlinerView.selection;