OLD | NEW |
1 | 1 |
2 | 2 |
3 /** | 3 /** |
4 Polymer.IronFitBehavior fits an element in another element using `max-height` an
d `max-width`, and | 4 Polymer.IronFitBehavior fits an element in another element using `max-height` an
d `max-width`, and |
5 optionally centers it in the window or another element. | 5 optionally centers it in the window or another element. |
6 | 6 |
7 The element will only be sized and/or positioned if it has not already been size
d and/or positioned | 7 The element will only be sized and/or positioned if it has not already been size
d and/or positioned |
8 by CSS. | 8 by CSS. |
9 | 9 |
10 CSS properties | Action | 10 CSS properties | Action |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 } | 208 } |
209 if (!this._fitInfo.positionedBy.horizontally) { | 209 if (!this._fitInfo.positionedBy.horizontally) { |
210 var left = (this._fitWidth - this.offsetWidth) / 2; | 210 var left = (this._fitWidth - this.offsetWidth) / 2; |
211 left -= this._fitInfo.margin.left; | 211 left -= this._fitInfo.margin.left; |
212 this.style.left = left + 'px'; | 212 this.style.left = left + 'px'; |
213 } | 213 } |
214 } | 214 } |
215 | 215 |
216 }; | 216 }; |
217 | 217 |
OLD | NEW |