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

Unified Diff: chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js

Issue 2028373002: [Media Router WebUI] Delay putSearchAtBottom_() until after imports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 7 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/media_router/elements/media_router_container/media_router_container.js
diff --git a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
index 9d19a5803e98905699f74762b44a62a052506d15..2978c9742f2a4c918c4da1deffd76d4e95491ebf 100644
--- a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
+++ b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
@@ -415,7 +415,6 @@ Polymer({
ready: function() {
this.elementReadyTimeMs_ = performance.now();
this.showSinkList_();
- this.putSearchAtBottom_();
Polymer.RenderStatus.afterNextRender(this, function() {
// Import the elements that aren't needed at startup. This reduces
@@ -430,6 +429,9 @@ Polymer({
return;
}
that.updateElementPositioning_();
+ if (that.currentView_ == media_router.MediaRouterView.SINK_LIST) {
+ that.putSearchAtBottom_();
+ }
};
this.importHref('chrome://resources/polymer/v1_0/neon-animation/' +
'web-animations.html', onload);
« 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