MCPcopy Index your code
hub / github.com/ampproject/amphtml / updateLayoutBox

Method updateLayoutBox

src/custom-element.js:958–962  ·  view source on GitHub ↗

* Updates the layout box of the element. * Should only be called by Resources. * @param {!./layout-rect.LayoutRectDef} layoutBox * @param {boolean} sizeChanged

(layoutBox, sizeChanged = false)

Source from the content-addressed store, hash-verified

956 * @param {boolean} sizeChanged
957 */
958 updateLayoutBox(layoutBox, sizeChanged = false) {
959 if (this.isBuilt()) {
960 this.onMeasure(sizeChanged);
961 }
962 }
963
964 /**
965 * Calls onLayoutMeasure() on the BaseElement implementation.

Callers 5

measureMethod · 0.80
completeCollapseMethod · 0.80
getCarouselFunction · 0.80
getAmpScrollableCarouselFunction · 0.80

Calls 2

isBuiltMethod · 0.95
onMeasureMethod · 0.95

Tested by

no test coverage detected