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

Unified Diff: chrome/browser/resources/settings/languages_page/add_languages_dialog.js

Issue 2359353002: MD Settings: Polish for Languages main page (Closed)
Patch Set: fix unintentional cr-shared-menu revert from rebase 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/languages_page/add_languages_dialog.js
diff --git a/chrome/browser/resources/settings/languages_page/add_languages_dialog.js b/chrome/browser/resources/settings/languages_page/add_languages_dialog.js
index 146744003f04ef9a38f39c6ccce32120fa0f772d..add9e083a352b6a4763c26b6774a7621984f2505 100644
--- a/chrome/browser/resources/settings/languages_page/add_languages_dialog.js
+++ b/chrome/browser/resources/settings/languages_page/add_languages_dialog.js
@@ -34,6 +34,9 @@ Polymer({
attached: function() {
this.$.dialog.showModal();
+ // Fire iron-resize after the list initially displays to prevent flickering.
+ var list = this.$$('iron-list');
+ setTimeout(list.fire.bind(list, 'iron-resize'));
Dan Beam 2016/09/23 23:25:42 setTimeout(function() { this.$$('iron-list').fir
michaelpg 2016/09/28 23:24:29 Done.
},
/**

Powered by Google App Engine
This is Rietveld 408576698