| OLD | NEW |
| 1 | 1 |
| 2 <!--- | 2 <!--- |
| 3 | 3 |
| 4 This README is automatically generated from the comments in these files: | 4 This README is automatically generated from the comments in these files: |
| 5 iron-fit-behavior.html | 5 iron-fit-behavior.html |
| 6 | 6 |
| 7 Edit those files, and our readme bot will duplicate them over here! | 7 Edit those files, and our readme bot will duplicate them over here! |
| 8 Edit this file, and the bot will squash your changes :) | 8 Edit this file, and the bot will squash your changes :) |
| 9 | 9 |
| 10 The bot does some handling of markdown. Please file a bug if it does the wrong |
| 11 thing! https://github.com/PolymerLabs/tedium/issues |
| 12 |
| 10 --> | 13 --> |
| 11 | 14 |
| 12 [](https://travis-ci.org/PolymerElements/iron-fit-behavior) | 15 [](https://travis-ci.org/PolymerElements/iron-fit-behavior) |
| 13 | 16 |
| 14 _[Demo and API Docs](https://elements.polymer-project.org/elements/iron-fit-beha
vior)_ | 17 _[Demo and API docs](https://elements.polymer-project.org/elements/iron-fit-beha
vior)_ |
| 15 | 18 |
| 16 | 19 |
| 17 ##Polymer.IronFitBehavior | 20 ##Polymer.IronFitBehavior |
| 18 | 21 |
| 19 | |
| 20 Polymer.IronFitBehavior fits an element in another element using `max-height` an
d `max-width`, and | 22 Polymer.IronFitBehavior fits an element in another element using `max-height` an
d `max-width`, and |
| 21 optionally centers it in the window or another element. | 23 optionally centers it in the window or another element. |
| 22 | 24 |
| 23 The element will only be sized and/or positioned if it has not already been size
d and/or positioned | 25 The element will only be sized and/or positioned if it has not already been size
d and/or positioned |
| 24 by CSS. | 26 by CSS. |
| 25 | 27 |
| 26 CSS properties | Action | 28 | CSS properties | Action | |
| 27 -----------------------------|------------------------------------------- | 29 | --- | --- | |
| 28 `position` set | Element is not centered horizontally or verticall
y | 30 | `position` set | Element is not centered horizontally or vertically | |
| 29 `top` or `bottom` set | Element is not vertically centered | 31 | `top` or `bottom` set | Element is not vertically centered | |
| 30 `left` or `right` set | Element is not horizontally centered | 32 | `left` or `right` set | Element is not horizontally centered | |
| 31 `max-height` or `height` set | Element respects `max-height` or `height` | 33 | `max-height` or `height` set | Element respects `max-height` or `height` | |
| 32 `max-width` or `width` set | Element respects `max-width` or `width` | 34 | `max-width` or `width` set | Element respects `max-width` or `width` | |
| 33 | 35 |
| 34 | 36 |
| OLD | NEW |