MCPcopy Create free account
hub / github.com/ampproject/amphtml / getLayoutSize

Method getLayoutSize

src/base-element.js:338–340  ·  view source on GitHub ↗

* Returns a previously measured layout size. * @return {!./layout-rect.LayoutSizeDef} * TODO(#31915): remove once R1 migration is complete.

()

Source from the content-addressed store, hash-verified

336 * TODO(#31915): remove once R1 migration is complete.
337 */
338 getLayoutSize() {
339 return this.element.getLayoutSize();
340 }
341
342 /**
343 * Returns the associated ampdoc. Only available when `buildCallback` and

Callers 9

looksLikeTrackingIframeFunction · 0.45
isAdLikeFunction · 0.45
attemptChangeSizeMethod · 0.45
forceCollapseMethod · 0.45
layoutCallbackMethod · 0.45
onLayoutMeasureMethod · 0.45
onLayoutMeasureMethod · 0.45
test-amp-vk.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected