зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
39798953db
Коммит
441763a059
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче