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

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

Issue 1615633002: [Media Router] Check for stamped first run flow before getting height. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 9d0450f906c7fbaa67c80337ecfb4b3fdcc73d84..ee506f1b8d14df7776b9148b1947ec8d37e1a969 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
@@ -1069,7 +1069,8 @@ Polymer({
if (this.computeShowFirstRunFlow_(showFirstRunFlow, currentView)) {
// Ensures that first run flow elements have finished stamping.
this.async(function() {
- var firstRunFlowHeight = this.$$('#first-run-flow').offsetHeight;
+ var firstRunFlowHeight = this.$$('#first-run-flow') ?
+ this.$$('#first-run-flow').offsetHeight : 0;
this.$['container-header'].style.marginTop = firstRunFlowHeight + 'px';
this.$['sink-list-view'].style.marginTop =
firstRunFlowHeight + headerHeight + 'px';
« 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