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

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: Fix tests. 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();
Dan Beam 2017/03/18 00:15:51 should we be doing this only in certain cases?
Dan Beam 2017/03/18 00:41:06 we probably should, but let's just see if anybody
dpapad 2017/03/20 20:34:55 Ok.
+ this.updateOverscrollForPage_();
},
/** @override */

Powered by Google App Engine
This is Rietveld 408576698