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

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

Issue 2182283003: MD Settings: Flush templates in settings-main before checking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@UpdateMocha
Patch Set: Created 4 years, 5 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/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 0b94e78334c8f1b72da5dc3c7b5ab5dde1e96673..09ee0bed7913be396e46497743b0fddfe90bca02 100644
--- a/chrome/browser/resources/settings/settings_main/settings_main.js
+++ b/chrome/browser/resources/settings/settings_main/settings_main.js
@@ -130,7 +130,7 @@ Polymer({
this.advancedToggleExpanded_ = true;
}
- // Wait for the dom-if changes prior to calculating the overflow padding.
+ // Wait for any other changes prior to calculating the overflow padding.
this.async(function() {
this.$.overscroll.style.paddingBottom = this.overscrollHeight_() + 'px';
});
@@ -150,6 +150,9 @@ Polymer({
return 0;
}
+ // Ensure any dom-if reflects the current properties.
+ Polymer.dom.flush();
Dan Beam 2016/07/29 00:11:45 :_(
michaelpg 2016/07/29 17:27:15 there was a ton of discussion about this, but we c
Dan Beam 2016/07/29 18:28:39 I didn't say it was wrong, I just said I was said
Dan Beam 2016/07/29 18:28:54 I was just sad** to see it
+
/**
* @param {!Element} element
* @return {number}
« 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