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

Method getLayoutSize

src/service/resource.js:592–594  ·  view source on GitHub ↗

* Returns a previously measured layout size. * @return {!../layout-rect.LayoutSizeDef}

()

Source from the content-addressed store, hash-verified

590 * @return {!../layout-rect.LayoutSizeDef}
591 */
592 getLayoutSize() {
593 return layoutSizeFromRect(this.layoutBox_);
594 }
595
596 /**
597 * Returns a previously measured layout box adjusted to the viewport. This

Callers 4

mutateWork_Method · 0.45
maybeGenerateSizes_Method · 0.45
layoutCallbackMethod · 0.45

Calls 1

layoutSizeFromRectFunction · 0.90

Tested by

no test coverage detected