rem: tree.ensureElementIsVisible(theNewRow); 
add:  var firstVisibleRow = tree.getIndexOfFirstVisibleRow(); var numOfVisibleRows = tree.getNumberOfVisibleRows();   if (top.awRow <= firstVisibleRow) tree.scrollToIndex(top.awRow - 1); else if (top.awRow - 1 >= (firstVisibleRow + numOfVisibleRows)) tree.scrollToIndex(top.awRow - numOfVisibleRows);  
context: function _awSetFocus(){	var tree = document.getElementById('addressingWidgetTree');	try	{		theNewRow = awGetTreeRow(top.awRow);		//temporary patch for bug 26344		awFinishCopyNode(theNewRow);		tree.ensureElementIsVisible(theNewRow);		top.awInputElement.focus();	}	catch(ex)	{		top.awFocusRetry ++;		if (top.awFocusRetry < 3)		{			dump("_awSetFocus failed, try it again...\n");			setTimeout("_awSetFocus();", 0);		}		else			dump("_awSetFocus failed, forget about it!\n");	}}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d8d311f2e26dcdeef3c650c275a59ccc3ca4fc2f/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js