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

Unified Diff: chrome/browser/resources/settings/search_engines_page/search_engines_list.js

Issue 2300633006: MD Settings: Search Engine: Call iron-list notifyResize (Closed)
Patch Set: Fix closure Created 4 years, 3 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/search_engines_page/search_engines_list.js
diff --git a/chrome/browser/resources/settings/search_engines_page/search_engines_list.js b/chrome/browser/resources/settings/search_engines_page/search_engines_list.js
index f9f4fdd2da6db44c98754080be5f272b5f957d1e..391444486e1141af676e25bc86117cd0f7872237 100644
--- a/chrome/browser/resources/settings/search_engines_page/search_engines_list.js
+++ b/chrome/browser/resources/settings/search_engines_page/search_engines_list.js
@@ -13,7 +13,15 @@ Polymer({
/** @type {!Array<!SearchEngine>} */
engines: {
type: Array,
- value: function() { return []; }
+ value: function() { return []; },
+ observer: 'enginesChanged_',
}
},
+
+ /** @private */
+ enginesChanged_: function() {
+ // Rather than adding an event to notify this element when it is shown,
+ // observe changes to |engines| and notify the iron-list.
+ this.$$('iron-list').fire('iron-resize');
+ },
});

Powered by Google App Engine
This is Rietveld 408576698