From 9742eb5a4856f94df11bf7ba1a4e76769111ea09 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Tue, 29 Oct 2002 03:34:06 +0000 Subject: [PATCH] Temporary hack fix for bookmark jumping problem. git-svn-id: svn://10.0.0.236/trunk@132627 18797224-902f-48f8-a5cc-f745e15eee43 --- .../browser/components/bookmarks/content/bookmarksTree.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/browser/components/bookmarks/content/bookmarksTree.xml b/mozilla/browser/components/bookmarks/content/bookmarksTree.xml index d74d32289f0..92e599aa8a5 100644 --- a/mozilla/browser/components/bookmarks/content/bookmarksTree.xml +++ b/mozilla/browser/components/bookmarks/content/bookmarksTree.xml @@ -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;