MCPcopy Index your code
hub / github.com/angular/components / _setSize

Method _setSize

src/google-maps/google-map/google-map.ts:505–512  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

503 }
504
505 private _setSize() {
506 if (this._mapEl) {
507 const styles = this._mapEl.style;
508 styles.height =
509 this.height === null ? '' : coerceCssPixelValue(this.height) || DEFAULT_HEIGHT;
510 styles.width = this.width === null ? '' : coerceCssPixelValue(this.width) || DEFAULT_WIDTH;
511 }
512 }
513
514 /** Combines the center and zoom and the other map options into a single object */
515 private _combineOptions(): google.maps.MapOptions {

Callers 2

ngOnChangesMethod · 0.95
ngOnInitMethod · 0.95

Calls 1

coerceCssPixelValueFunction · 0.70

Tested by

no test coverage detected