Index: chrome/browser/resources/chromeos/login/network_dropdown.js |
diff --git a/chrome/browser/resources/chromeos/login/network_dropdown.js b/chrome/browser/resources/chromeos/login/network_dropdown.js |
index 042def5281a0a8016d8975ae50fb02bad03a0154..469d15970054db02e43682df342edb5f28490623 100644 |
--- a/chrome/browser/resources/chromeos/login/network_dropdown.js |
+++ b/chrome/browser/resources/chromeos/login/network_dropdown.js |
@@ -45,8 +45,10 @@ cr.define('cr.ui', function() { |
var thisBottom = thisTop + this.offsetHeight; |
var itemTop = item.offsetTop; |
var itemBottom = itemTop + item.offsetHeight; |
- if (itemTop <= thisTop) return -1; |
- if (itemBottom >= thisBottom) return 1; |
+ if (itemTop <= thisTop) |
+ return -1; |
+ if (itemBottom >= thisBottom) |
+ return 1; |
return 0; |
}, |
@@ -170,8 +172,8 @@ cr.define('cr.ui', function() { |
} |
this.container.selectItem(this.container.firstItem, false); |
- var maxHeight = cr.ui.LoginUITools.getMaxHeightBeforeShelfOverlapping( |
- this.container); |
+ var maxHeight = |
+ cr.ui.LoginUITools.getMaxHeightBeforeShelfOverlapping(this.container); |
if (maxHeight < this.container.offsetHeight) |
this.container.style.maxHeight = maxHeight + 'px'; |
}, |
@@ -300,8 +302,9 @@ cr.define('cr.ui', function() { |
if (this.inFocus && !this.controller.isShown && |
(e.keyCode == DropDown.KEYCODE_ENTER || |
e.keyCode == DropDown.KEYCODE_SPACE || |
- (!useKeyboardFlow && (e.keyCode == DropDown.KEYCODE_UP || |
- e.keyCode == DropDown.KEYCODE_DOWN)))) { |
+ (!useKeyboardFlow && |
+ (e.keyCode == DropDown.KEYCODE_UP || |
+ e.keyCode == DropDown.KEYCODE_DOWN)))) { |
this.opening = true; |
this.controller.isShown = true; |
e.stopPropagation(); |
@@ -433,7 +436,5 @@ cr.define('cr.ui', function() { |
useKeyboardFlow = true; |
}; |
- return { |
- DropDown: DropDown |
- }; |
+ return {DropDown: DropDown}; |
}); |