| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @license | 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 10 <link rel="import" href="../iron-resizable-behavior/iron-resizable-behavior.html
"> | 10 <link rel="import" href="../iron-resizable-behavior/iron-resizable-behavior.html
"> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 </iron-dropdown> | 35 </iron-dropdown> |
| 36 | 36 |
| 37 In the above example, the `<div>` with class `.dropdown-content` will be | 37 In the above example, the `<div>` with class `.dropdown-content` will be |
| 38 hidden until the dropdown element has `opened` set to true, or when the `open` | 38 hidden until the dropdown element has `opened` set to true, or when the `open` |
| 39 method is called on the element. | 39 method is called on the element. |
| 40 | 40 |
| 41 @demo demo/index.html | 41 @demo demo/index.html |
| 42 --> | 42 --> |
| 43 | 43 |
| 44 </head><body><dom-module id="iron-dropdown"> | 44 </head><body><dom-module id="iron-dropdown"> |
| 45 <style> | 45 <template> |
| 46 :host { | 46 <style> |
| 47 position: fixed; | 47 :host { |
| 48 } | 48 position: fixed; |
| 49 } |
| 49 | 50 |
| 50 #contentWrapper ::content > * { | 51 #contentWrapper ::content > * { |
| 51 overflow: auto; | 52 overflow: auto; |
| 52 } | 53 } |
| 53 | 54 |
| 54 #contentWrapper.animating ::content > * { | 55 #contentWrapper.animating ::content > * { |
| 55 overflow: hidden; | 56 overflow: hidden; |
| 56 } | 57 } |
| 57 </style> | 58 </style> |
| 58 <template> | 59 |
| 59 <div id="contentWrapper"> | 60 <div id="contentWrapper"> |
| 60 <content id="content" select=".dropdown-content"></content> | 61 <content id="content" select=".dropdown-content"></content> |
| 61 </div> | 62 </div> |
| 62 </template> | 63 </template> |
| 63 | 64 |
| 64 </dom-module> | 65 </dom-module> |
| 65 <script src="iron-dropdown-extracted.js"></script></body></html> | 66 <script src="iron-dropdown-extracted.js"></script></body></html> |
| OLD | NEW |