From a22337abdeb8395a1a96975e87cff1969443bf26 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Thu, 19 Mar 2015 11:46:48 +0900 Subject: [PATCH] Scroll to opened tab group after expanding animation is finished --- content/treestyletab/bookmarksOverlay.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/content/treestyletab/bookmarksOverlay.js b/content/treestyletab/bookmarksOverlay.js index 5dfe4b82..12707254 100644 --- a/content/treestyletab/bookmarksOverlay.js +++ b/content/treestyletab/bookmarksOverlay.js @@ -270,11 +270,9 @@ var TreeStyleTabBookmarksService = inherit(TreeStyleTabService, { ' if (!TSTTreeStructureApplied)\n' + ' browserWindow.TreeStyleTabService.applyTreeStructureToTabs(tabs, TSTTreeStructure, TSTOpenGroupBookmarkBehavior & browserWindow.TreeStyleTabBookmarksService.kGROUP_BOOKMARK_EXPAND_ALL_TREE);\n' + ' if (!loadInBackground) {\n' + - ' browserWindow.setTimeout(function() { // do after TabSelect\n' + - ' browserWindow.setTimeout(function() { // do after TabOpen handler\n' + - ' browserWindow.gBrowser.treeStyleTab.scrollToTabs(tabs);\n' + - ' }, 0);\n' + - ' }, 0);\n' + + ' browserWindow.setTimeout(function() {\n' + + ' browserWindow.gBrowser.treeStyleTab.scrollToTabs(tabs);\n' + + ' }, browserWindow.gBrowser.treeStyleTab.collapseDuration); // start scroll after expanding animation is finished\n' + ' }\n' + ' }\n' + '$1'