Chromium Code Reviews| 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 3a5a3f5fe79dc2c7362c89a2ee7d4d659b948a4f..f6e5a54800e9f9e6ef09abdafbf5b7f2744f94ff 100644 |
| --- a/chrome/browser/resources/chromeos/login/network_dropdown.js |
| +++ b/chrome/browser/resources/chromeos/login/network_dropdown.js |
| @@ -173,6 +173,11 @@ cr.define('cr.ui', function() { |
| this.createItem_(this.container, item); |
| } |
| this.container.selectItem(this.container.firstItem, false); |
| + |
| + var maxHeight = Oobe.getMaxHeightBeforeShelfOverlapping( |
| + this.container); |
| + if (maxHeight < parseInt(window.getComputedStyle(this.container).height)) |
| + this.container.style.maxHeight = maxHeight + 'px'; |
|
dzhioev (left Google)
2014/07/16 19:13:51
Are you sure that accessing to CSS properties with
merkulova
2014/07/22 08:11:44
Well... it's accessed from js like this.
|
| }, |
| /** |