Temporary hack fix for bookmark jumping problem.

git-svn-id: svn://10.0.0.236/trunk@132627 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com 2002-10-29 03:34:06 +00:00
parent 853adbc7f7
commit 9742eb5a48

View File

@ -533,8 +533,12 @@ dump("error in refresh sort:"+e)
observer.beginUpdateBatch(this.db);
BookmarksController.doCommand(aCommand, selection, target);
observer.endUpdateBatch(this.db);
var firstVisibleRow = this.mOuter.treeBoxObject.getFirstVisibleRow()
this.mOuter.treeBoxObject.selection.currentIndex=-1;
this.mOuter.tree.builder.rebuild();
// temporary hack: for an unknown reason, rebuilding cause a scroll to the bottom
// if the first visible row is not 0
this.mOuter.treeBoxObject.scrollToRow(firstVisibleRow);
this.mOuter.updateTreeSelection();
}
this.mOuter.treeBoxObject.selection.selectEventsSuppressed = false;