MCPcopy
hub / github.com/ampproject/amphtml / getLayoutBox

Method getLayoutBox

src/base-element.js:329–331  ·  view source on GitHub ↗

* Returns a previously measured layout box adjusted to the viewport. This * mainly affects fixed-position elements that are adjusted to be always * relative to the document position in the viewport. * @return {!./layout-rect.LayoutRectDef} * TODO(#31915): remove once R1 migration is comp

()

Source from the content-addressed store, hash-verified

327 * TODO(#31915): remove once R1 migration is complete.
328 */
329 getLayoutBox() {
330 return this.element.getLayoutBox();
331 }
332
333 /**
334 * Returns a previously measured layout size.

Callers 15

test-mutator.jsFile · 0.45
test-resource.jsFile · 0.45
startRender_Method · 0.45
enterFullOverlayModeMethod · 0.45
onLayoutMeasureMethod · 0.45
assertPosition_Method · 0.45
sendScrollDataToItem_Method · 0.45
getStoryPageRect_Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected