rem: if(newMessage) { tree.ensureElementIsVisible(newMessage); 
add: if(messageView.showThreads) {  var topLevelMessage = GetTopLevelMessageForMessage(newMessage, folder); var topLevelResource = topLevelMessage.QueryInterface(Components.interfaces.nsIRDFResource); var topLevelURI = topLevelResource.Value; var topElement = document.getElementById(topLevelURI); if(topElement) { msgNavigationService.OpenTreeitemAndDescendants(topElement); }  }  var messageResource = newMessage.QueryInterface(Components.interfaces.nsIRDFResource); var messageURI = messageResource.Value; var messageElement = document.getElementById(messageURI);  if(messageElement) { tree.ensureElementIsVisible(messageElement); } 
context: function ScrollToFirstNewMessage(){	var tree = GetThreadTree();	var newMessage = GetNextMessage(tree, null, GoNewMessage, ResourceGoNewMessage, null, false)	if(newMessage)	{		tree.ensureElementIsVisible(newMessage); 	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4170fc4b9236a536c31f600a2e1c72350686521c/msgViewNavigation.js/buggy/mailnews/base/resources/content/msgViewNavigation.js