Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7532)

Unified Diff: chrome/browser/resources/md_bookmarks/folder_node.js

Issue 2876113002: [MD Bookmarks] Scroll selected folder into view in sidebar. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/folder_node.js
diff --git a/chrome/browser/resources/md_bookmarks/folder_node.js b/chrome/browser/resources/md_bookmarks/folder_node.js
index 94cc5e7a665fea47fdf550a04549d56e42d91e4c..c02e8155b5334b3e4ba4e85ff22ed26748bec3cc 100644
--- a/chrome/browser/resources/md_bookmarks/folder_node.js
+++ b/chrome/browser/resources/md_bookmarks/folder_node.js
@@ -61,6 +61,12 @@ Polymer({
});
this.updateFromStore();
+
+ if (this.isSelectedFolder_) {
+ this.async(function() {
+ this.scrollIntoViewIfNeeded();
+ });
+ }
},
/** @return {HTMLElement} */
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698