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

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

Issue 2754563002: MD Settings: Lazy load the contents of the "advanced" settings. (Closed)
Patch Set: Address comments. Created 3 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/settings_main/settings_main.js
diff --git a/chrome/browser/resources/settings/settings_main/settings_main.js b/chrome/browser/resources/settings/settings_main/settings_main.js
index 2fb914da04ac94fa56f159a5dc1cd7824edc2d85..49397d85763e019f8ec3de52b9e70d4b0cde7833 100644
--- a/chrome/browser/resources/settings/settings_main/settings_main.js
+++ b/chrome/browser/resources/settings/settings_main/settings_main.js
@@ -85,6 +85,13 @@ Polymer({
/** @override */
attached: function() {
this.listen(this, 'freeze-scroll', 'onFreezeScroll_');
+ this.listen(this, 'lazy-loaded', 'onLazyLoaded_');
+ },
+
+ /** @private */
+ onLazyLoaded_: function() {
+ Polymer.dom.flush();
+ this.updateOverscrollForPage_();
},
/** @override */
« no previous file with comments | « chrome/browser/resources/settings/route.js ('k') | chrome/browser/resources/settings/settings_page/main_page_behavior.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698