OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | 2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
6 Code distributed by Google as part of the polymer project is also | 6 Code distributed by Google as part of the polymer project is also |
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
8 --> | 8 --> |
9 | 9 |
10 <!-- | 10 <!-- |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 * | 133 * |
134 * @attribute relatedTarget | 134 * @attribute relatedTarget |
135 * @type Node | 135 * @type Node |
136 */ | 136 */ |
137 relatedTarget: null, | 137 relatedTarget: null, |
138 | 138 |
139 /** | 139 /** |
140 * The horizontal alignment of the popup relative to `relatedTarget`. `lef
t` | 140 * The horizontal alignment of the popup relative to `relatedTarget`. `lef
t` |
141 * means the left edges are aligned together. `right` means the right edge
s | 141 * means the left edges are aligned together. `right` means the right edge
s |
142 * are aligned together. | 142 * are aligned together. |
| 143 * |
| 144 * Accepted values: 'left', 'right' |
143 * | 145 * |
144 * @attribute halign | 146 * @attribute halign |
145 * @type 'left' | 'right' | 147 * @type String |
146 * @default 'left' | 148 * @default 'left' |
147 */ | 149 */ |
148 halign: 'left', | 150 halign: 'left', |
149 | 151 |
150 /** | 152 /** |
151 * The vertical alignment of the popup relative to `relatedTarget`. `top`
means | 153 * The vertical alignment of the popup relative to `relatedTarget`. `top`
means |
152 * the top edges are aligned together. `bottom` means the bottom edges are | 154 * the top edges are aligned together. `bottom` means the bottom edges are |
153 * aligned together. | 155 * aligned together. |
154 * | 156 * |
| 157 * Accepted values: 'top', 'bottom' |
| 158 * |
155 * @attribute valign | 159 * @attribute valign |
156 * @type 'top' | 'bottom' | 160 * @type String |
157 * @default 'top' | 161 * @default 'top' |
158 */ | 162 */ |
159 valign: 'top', | 163 valign: 'top', |
160 | 164 |
161 }, | 165 }, |
162 | 166 |
163 measure: function() { | 167 measure: function() { |
164 var target = this.target; | 168 var target = this.target; |
165 // remember position, because core-overlay may have set the property | 169 // remember position, because core-overlay may have set the property |
166 var pos = target.style.position; | 170 var pos = target.style.position; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 dims.position.v_by = this.localName; | 302 dims.position.v_by = this.localName; |
299 } | 303 } |
300 } | 304 } |
301 | 305 |
302 }); | 306 }); |
303 | 307 |
304 })(); | 308 })(); |
305 | 309 |
306 </script> | 310 </script> |
307 </polymer-element> | 311 </polymer-element> |
OLD | NEW |