| 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-behaviors/iron-control-state.html"> | 10 <link rel="import" href="../iron-behaviors/iron-control-state.html"> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 </head><body><dom-module id="iron-autogrow-textarea"> | 40 </head><body><dom-module id="iron-autogrow-textarea"> |
| 41 | 41 |
| 42 <style> | 42 <style> |
| 43 :host { | 43 :host { |
| 44 display: inline-block; | 44 display: inline-block; |
| 45 position: relative; | 45 position: relative; |
| 46 width: 400px; | 46 width: 400px; |
| 47 border: 1px solid; | 47 border: 1px solid; |
| 48 padding: 2px; | 48 padding: 2px; |
| 49 -moz-appearance: textarea; | |
| 50 -webkit-appearance: textarea; | |
| 51 } | 49 } |
| 52 | 50 |
| 53 .mirror-text { | 51 .mirror-text { |
| 54 visibility: hidden; | 52 visibility: hidden; |
| 55 word-wrap: break-word; | 53 word-wrap: break-word; |
| 56 } | 54 } |
| 57 | 55 |
| 58 .fit { | 56 .fit { |
| 59 @apply(--layout-fit); | 57 @apply(--layout-fit); |
| 60 } | 58 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 87 <div id="mirror" class="mirror-text" aria-hidden="true"> </div> | 85 <div id="mirror" class="mirror-text" aria-hidden="true"> </div> |
| 88 | 86 |
| 89 <!-- size the input/textarea with a div, because the textarea has intrinsic
size in ff --> | 87 <!-- size the input/textarea with a div, because the textarea has intrinsic
size in ff --> |
| 90 <div class="textarea-container fit"> | 88 <div class="textarea-container fit"> |
| 91 <textarea id="textarea" autocomplete$="[[autocomplete]]" autofocus$="[[aut
ofocus]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[
[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]"
maxlength$="[[maxlength]]"></textarea> | 89 <textarea id="textarea" autocomplete$="[[autocomplete]]" autofocus$="[[aut
ofocus]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[
[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]"
maxlength$="[[maxlength]]"></textarea> |
| 92 </div> | 90 </div> |
| 93 </template> | 91 </template> |
| 94 </dom-module> | 92 </dom-module> |
| 95 | 93 |
| 96 <script src="iron-autogrow-textarea-extracted.js"></script></body></html> | 94 <script src="iron-autogrow-textarea-extracted.js"></script></body></html> |
| OLD | NEW |