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

Side by Side Diff: chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html

Issue 2702523005: MD Settings: long dialog body should have overscroll line. (Closed)
Patch Set: remove unused variable Created 3 years, 8 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/cr_elements/cr_dialog/cr_dialog.html "> 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html ">
2 <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.h tml">
2 <link rel="import" href="chrome://resources/html/cr.html"> 3 <link rel="import" href="chrome://resources/html/cr.html">
3 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> 4 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
4 <link rel="import" href="chrome://resources/html/md_select_css.html"> 5 <link rel="import" href="chrome://resources/html/md_select_css.html">
5 <link rel="import" href="chrome://resources/html/polymer.html"> 6 <link rel="import" href="chrome://resources/html/polymer.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11 y-keys.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11 y-keys.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-texta rea.html"> 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-texta rea.html">
9 <link rel="import" href="../settings_shared_css.html"> 10 <link rel="import" href="../settings_shared_css.html">
10 <link rel="import" href="../settings_vars_css.html"> 11 <link rel="import" href="../settings_vars_css.html">
11 12
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 50 }
50 51
51 .long { 52 .long {
52 width: var(--paper-input-max-width); 53 width: var(--paper-input-max-width);
53 } 54 }
54 55
55 #saveButton { 56 #saveButton {
56 -webkit-margin-start: 8px; 57 -webkit-margin-start: 8px;
57 } 58 }
58 59
59 #dialog .body { 60 #dialog {
60 max-height: 450px; 61 --cr-dialog-body-container: {
62 max-height: 450px;
63 };
61 } 64 }
62 65
63 @media all and (max-height: 714px) { 66 @media all and (max-height: 714px) {
64 #dialog .body { 67 #dialog {
65 max-height: 270px; 68 --cr-dialog-body-container: {
69 max-height: 270px;
70 };
66 } 71 }
67 } 72 }
68 73
69 paper-textarea { 74 paper-textarea {
70 /** 75 /**
71 * Workaround for iron-autogrow-textarea's display:inline-block creating 76 * Workaround for iron-autogrow-textarea's display:inline-block creating
72 * too much vertical space than intended. 77 * too much vertical space than intended.
73 */ 78 */
74 --layout-relative : { 79 --layout-relative : {
75 line-height: 1; 80 line-height: 1;
76 }; 81 };
77 } 82 }
78 </style> 83 </style>
79 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"> 84 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"
85 show-scroll-borders>
80 <div class="title">[[title_]]</div> 86 <div class="title">[[title_]]</div>
81 <div class="body"> 87 <div class="body">
82 <template is="dom-repeat" items="[[addressWrapper_]]"> 88 <template is="dom-repeat" items="[[addressWrapper_]]">
83 <div class="address-row"> 89 <div class="address-row">
84 <template is="dom-repeat" items="[[item]]"> 90 <template is="dom-repeat" items="[[item]]">
85 <template is="dom-if" if="[[item.isTextArea]]"> 91 <template is="dom-if" if="[[item.isTextArea]]">
86 <paper-textarea label="[[item.component.fieldName]]" 92 <paper-textarea label="[[item.component.fieldName]]"
87 value="{{item.value}}" on-value-changed="updateCanSave_" 93 value="{{item.value}}" on-value-changed="updateCanSave_"
88 class$="address-column [[long_(item)]]" always-float-label 94 class$="address-column [[long_(item)]]" always-float-label
89 autofocus> 95 autofocus>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 </paper-button> 144 </paper-button>
139 <paper-button id="saveButton" class="action-button" 145 <paper-button id="saveButton" class="action-button"
140 disabled="[[!canSave_]]" on-tap="onSaveButtonTap_"> 146 disabled="[[!canSave_]]" on-tap="onSaveButtonTap_">
141 $i18n{save} 147 $i18n{save}
142 </paper-button> 148 </paper-button>
143 </div> 149 </div>
144 </dialog> 150 </dialog>
145 </template> 151 </template>
146 <script src="address_edit_dialog.js"></script> 152 <script src="address_edit_dialog.js"></script>
147 </dom-module> 153 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698