MCPcopy Create free account
hub / github.com/angular/components / _setSize

Method _setSize

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

Source from the content-addressed store, hash-verified

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

Callers 2

ngOnChangesMethod · 0.95
ngOnInitMethod · 0.95

Calls 1

coerceCssPixelValueFunction · 0.70

Tested by

no test coverage detected