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

Unified Diff: chrome/browser/resources/md_history/history_list.js

Issue 2122103002: MD History: Resize iron-list after it is attached to the document (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Closure 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 | « chrome/browser/resources/md_history/compiled_resources2.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/history_list.js
diff --git a/chrome/browser/resources/md_history/history_list.js b/chrome/browser/resources/md_history/history_list.js
index 68f626d159a7467eb5014116d5f6882ed250641d..58a3cfe03bfe3da9ba7c3e3c90d9833d5e7539c0 100644
--- a/chrome/browser/resources/md_history/history_list.js
+++ b/chrome/browser/resources/md_history/history_list.js
@@ -32,6 +32,14 @@ Polymer({
'remove-bookmark-stars': 'removeBookmarkStars_',
},
+ /** @override */
+ attached: function() {
+ // It is possible (eg, when middle clicking the reload button) for all other
+ // resize events to fire before the list is attached and can be measured.
+ // Adding another resize here ensures it will get sized correctly.
+ /** @type {IronListElement} */(this.$['infinite-list']).notifyResize();
+ },
+
/**
* Closes the overflow menu.
* @private
« no previous file with comments | « chrome/browser/resources/md_history/compiled_resources2.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698