rem: if (gDBView.sortOrder == nsMsgViewSortOrder.ascending) 
add: if (gDBView.sortOrder == nsMsgViewSortOrder.ascending) 
context: function ScrollToMessageAfterFolderLoad(folder){  var scrolled = pref.getBoolPref("mailnews.scroll_to_new_message") &&               ScrollToMessage(nsMsgNavigationType.firstNew, true, false /* selectMessage */);  if (!scrolled && folder && pref.getBoolPref("mailnews.remember_selected_message"))  {    // reselect the last selected message    var lastMessageLoaded = folder.lastMessageLoaded;    if (lastMessageLoaded != nsMsgKey_None)      scrolled = SelectAndScrollToKey(lastMessageLoaded);  }  if (!scrolled)   {    // if we still haven't scrolled,    // scroll to the newest, which might be the top or the bottom    // depending on our sort order and sort type    if (gDBView.sortOrder == nsMsgViewSortOrder.ascending)     {      switch (gDBView.sortType)       {        case nsMsgViewSortType.byDate:         case nsMsgViewSortType.byReceived:         case nsMsgViewSortType.byId:         case nsMsgViewSortType.byThread:          scrolled = ScrollToMessage(nsMsgNavigationType.lastMessage, true, false /* selectMessage */);         break;      }    }    // if still we haven't scrolled,    // scroll to the top.    if (!scrolled)      EnsureRowInThreadTreeIsVisible(0);  }  return scrolled;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/df6c90de4053d1c9239c66be97aa7f3c8fcb9377/msgMail3PaneWindow.js/buggy/mailnews/base/resources/content/msgMail3PaneWindow.js