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

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: rebase Created 4 years, 10 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 217d98f2118e26ecc0103f5eb2f6e8fa875178cf..4746574132fb6ae93139c2e644b7af33ac6fa7d8 100644
--- a/chrome/browser/resources/settings/basic_page/basic_page.js
+++ b/chrome/browser/resources/settings/basic_page/basic_page.js
@@ -49,7 +49,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