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

Side by Side Diff: ui/webui/resources/cr_elements/network/cr_network_list.html

Issue 2627353003: Settings/Oobe: Simplify cr-network-select and use flex (Closed)
Patch Set: Add comment Created 3 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 unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe s/iron-flex-layout.html"> 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe s/iron-flex-layout.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm l"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm l">
4 <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.h tml"> 4 <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.h tml">
5 <link rel="import" href="chrome://resources/cr_elements/network/cr_network_list_ item.html"> 5 <link rel="import" href="chrome://resources/cr_elements/network/cr_network_list_ item.html">
6 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm l"> 6 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm l">
7 7
8 <dom-module id="cr-network-list"> 8 <dom-module id="cr-network-list">
9 <template> 9 <template>
10 <style include="cr-shared-style"> 10 <style include="cr-shared-style">
11 :host {
12 display: inline-flex;
13 }
11 #container { 14 #container {
12 max-height: 1000px; 15 max-height: 1000px;
13 min-height: 50px; 16 min-height: 50px;
14 overflow-y: auto; 17 overflow-y: auto;
15 } 18 }
16 </style> 19 </style>
17 <div id="container" class="layout vertical" scrollable> 20 <div id="container" class="layout vertical flex" scrollable>
18 <iron-list items="[[getItems_(networks, customItems)]]" 21 <iron-list items="[[getItems_(networks, customItems)]]"
19 scroll-target="container" selection-enabled 22 scroll-target="container" selection-enabled
20 selected-item="{{selectedItem}}"> 23 selected-item="{{selectedItem}}">
21 <template> 24 <template>
22 <cr-network-list-item item="[[item]]" is-list-item 25 <cr-network-list-item item="[[item]]" is-list-item
23 show-buttons="[[showButtons]]" tabindex$="[[tabIndex]]"> 26 show-buttons="[[showButtons]]" tabindex$="[[tabIndex]]">
24 </cr-network-list-item> 27 </cr-network-list-item>
25 </template> 28 </template>
26 </iron-list> 29 </iron-list>
27 </div> 30 </div>
28 </template> 31 </template>
29 <script src="cr_network_list.js"></script> 32 <script src="cr_network_list.js"></script>
30 </dom-module> 33 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698