| 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 --> | 9 --> |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 <div class="container"> | 50 <div class="container"> |
| 51 <iron-fit-impl vertical-align="top" vertical-offset="20"> | 51 <iron-fit-impl vertical-align="top" vertical-offset="20"> |
| 52 With vertical offset | 52 With vertical offset |
| 53 </iron-fit-impl> | 53 </iron-fit-impl> |
| 54 </div> | 54 </div> |
| 55 | 55 |
| 56 | 56 |
| 57 @demo demo/index.html | 57 @demo demo/index.html |
| 58 @polymerBehavior | 58 @polymerBehavior |
| 59 */ | 59 */ |
| 60 | |
| 61 Polymer.IronFitBehavior = { | 60 Polymer.IronFitBehavior = { |
| 62 | 61 |
| 63 properties: { | 62 properties: { |
| 64 | 63 |
| 65 /** | 64 /** |
| 66 * The element that will receive a `max-height`/`width`. By default it is
the same as `this`, | 65 * The element that will receive a `max-height`/`width`. By default it is
the same as `this`, |
| 67 * but it can be set to a child element. This is useful, for example, for
implementing a | 66 * but it can be set to a child element. This is useful, for example, for
implementing a |
| 68 * scrolling region inside the element. | 67 * scrolling region inside the element. |
| 69 * @type {!Element} | 68 * @type {!Element} |
| 70 */ | 69 */ |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 if (position.croppedArea === 0 && alignOk) { | 602 if (position.croppedArea === 0 && alignOk) { |
| 604 break; | 603 break; |
| 605 } | 604 } |
| 606 } | 605 } |
| 607 | 606 |
| 608 return position; | 607 return position; |
| 609 } | 608 } |
| 610 | 609 |
| 611 }; | 610 }; |
| 612 </script> | 611 </script> |
| OLD | NEW |