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

Side by Side Diff: chrome/browser/resources/settings/on_startup_page/startup_urls_page.html

Issue 2338133011: MD Settings: Use scrollable behavior for all iron-list containers (Closed)
Patch Set: Rebase Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/search_engines_page/compiled_resources2.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/html/web_ui_listener_behavior.html"> 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
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="/settings_shared_css.html"> 5 <link rel="import" href="/settings_shared_css.html">
6 <link rel="import" href="/on_startup_page/startup_url_dialog.html"> 6 <link rel="import" href="/on_startup_page/startup_url_dialog.html">
7 <link rel="import" href="/on_startup_page/startup_url_entry.html"> 7 <link rel="import" href="/on_startup_page/startup_url_entry.html">
8 <link rel="import" href="/on_startup_page/startup_urls_page_browser_proxy.html"> 8 <link rel="import" href="/on_startup_page/startup_urls_page_browser_proxy.html">
9 9
10 <dom-module id="settings-startup-urls-page"> 10 <dom-module id="settings-startup-urls-page">
11 <template> 11 <template>
12 <style include="settings-shared"> 12 <style include="settings-shared">
13 #outer { 13 #outer {
14 @apply(--settings-list-frame-padding); 14 @apply(--settings-list-frame-padding);
15 max-height: 395px; /** Enough height to show six entries. */ 15 max-height: 395px; /** Enough height to show six entries. */
16 } 16 }
17 #container iron-list > settings-startup-url-entry:not(:first-of-type) { 17 #container iron-list > settings-startup-url-entry:not(:first-of-type) {
18 border-top: var(--settings-separator-line); 18 border-top: var(--settings-separator-line);
19 } 19 }
20 </style> 20 </style>
21 <div id="outer" class="layout vertical flex"> 21 <div id="outer" class="layout vertical flex">
22 <div id="container" class="layout vertical flex" scrollable> 22 <div id="container" class="scroll-container flex" scrollable>
23 <iron-list items="[[startupPages_]]" scroll-target="container"> 23 <iron-list items="[[startupPages_]]" scroll-target="container">
24 <template> 24 <template>
25 <settings-startup-url-entry model="[[item]]" 25 <settings-startup-url-entry model="[[item]]"
26 tabindex$="[[tabIndex]]"> 26 tabindex$="[[tabIndex]]">
27 </settings-startup-url-entry> 27 </settings-startup-url-entry>
28 </template> 28 </template>
29 </iron-list> 29 </iron-list>
30 </div> 30 </div>
31 <div class="list-item list-button" id="addPage" on-tap="onAddPageTap_"> 31 <div class="list-item list-button" id="addPage" on-tap="onAddPageTap_">
32 $i18n{onStartupAddNewPage} 32 $i18n{onStartupAddNewPage}
33 </div> 33 </div>
34 <div class="list-item list-button" id="useCurrentPages" 34 <div class="list-item list-button" id="useCurrentPages"
35 on-tap="onUseCurrentPagesTap_">$i18n{onStartupUseCurrent}</div> 35 on-tap="onUseCurrentPagesTap_">$i18n{onStartupUseCurrent}</div>
36 </div> 36 </div>
37 <template is="dom-if" if="[[showStartupUrlDialog_]]" restamp> 37 <template is="dom-if" if="[[showStartupUrlDialog_]]" restamp>
38 <settings-startup-url-dialog model="[[startupUrlDialogModel_]]"> 38 <settings-startup-url-dialog model="[[startupUrlDialogModel_]]">
39 </settings-startup-url-dialog> 39 </settings-startup-url-dialog>
40 </template> 40 </template>
41 </template> 41 </template>
42 <script src="startup_urls_page.js"></script> 42 <script src="startup_urls_page.js"></script>
43 </dom-module> 43 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/search_engines_page/compiled_resources2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698