Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(959)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-fit-behavior/iron-fit-behavior-extracted.js

Issue 1155683008: Rename polymer and cr_elements v0_8 to v1_0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v1
Patch Set: fix a merge mistake Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698