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

Unified Diff: chrome/browser/resources/settings/basic_page/basic_page.js

Issue 1736733003: MD Settings: Custom expand/collapse section animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: function/rebase Created 4 years, 9 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
Index: chrome/browser/resources/settings/basic_page/basic_page.js
diff --git a/chrome/browser/resources/settings/basic_page/basic_page.js b/chrome/browser/resources/settings/basic_page/basic_page.js
index 0e84e86db5a52cf06d2a457de8b0fbe6ca27242a..80787fc349b749c512321e0cdef9391b7f6eb4fc 100644
--- a/chrome/browser/resources/settings/basic_page/basic_page.js
+++ b/chrome/browser/resources/settings/basic_page/basic_page.js
@@ -46,7 +46,20 @@ Polymer({
},
- behaviors: [I18nBehavior, SettingsPageVisibility],
+ /**
+ * @type {string} Selector to get the sections.
+ * TODO(michaelpg): replace duplicate docs with @override once b/24294625
+ * is fixed.
+ */
+ sectionSelector: 'settings-section',
+
+ /** @override */
+ attached: function() {
+ /** @override */
+ this.scroller = this.parentElement;
+ },
+
+ behaviors: [I18nBehavior, SettingsPageVisibility, RoutableBehavior],
onResetDone_: function() {
this.showResetProfileBanner_ = false;

Powered by Google App Engine
This is Rietveld 408576698