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

Unified Diff: ui/login/account_picker/user_pod_row.js

Issue 1220573004: Noop scrollFocusedPodIntoView on Windows, Linux and Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/login/account_picker/user_pod_row.js
diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js
index 3dc15f0745dfb11ba4eb2ac4694556ac29da0c3c..60954dec36d2124f019aa044c1a9a290ce8e1091 100644
--- a/ui/login/account_picker/user_pod_row.js
+++ b/ui/login/account_picker/user_pod_row.js
@@ -2321,6 +2321,10 @@ cr.define('login', function() {
// First check whether focused pod is already fully visible.
var visibleArea = $('scroll-container');
+ // Visible area may not defined at user manager screen on all platforms.
+ // Windows, Mac and Linux do not have visible area.
+ if (!visibleArea)
+ return;
var scrollTop = visibleArea.scrollTop;
var clientHeight = visibleArea.clientHeight;
var podTop = $('oobe').offsetTop + pod.offsetTop;
« 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