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

Method attemptChangeHeight

src/base-element.js:890–896  ·  view source on GitHub ↗

* Return a promise that requests the runtime to update * the height of this element to the specified value. * The runtime will schedule this request and attempt to process it * as soon as possible. However, unlike in forceChangeHeight, the runtime * may refuse to make a change in

(newHeight)

Source from the content-addressed store, hash-verified

888 * @public
889 */
890 attemptChangeHeight(newHeight) {
891 return Services.mutatorForDoc(this.getAmpDoc()).requestChangeSize(
892 this.element,
893 newHeight,
894 /* newWidth */ undefined
895 );
896 }
897
898 /**
899 * Return a promise that requests the runtime to update

Callers 15

layoutCallbackMethod · 0.45
attemptToFit_Method · 0.45
riddleHeightChanged_Method · 0.45
layoutCallbackMethod · 0.45
handleFluidMessage_Method · 0.45
expandFluidCreative_Method · 0.45
layoutCallbackMethod · 0.45
handleMowMessage_Method · 0.45
initMethod · 0.45
layoutCallbackMethod · 0.45

Calls 2

getAmpDocMethod · 0.95
requestChangeSizeMethod · 0.45

Tested by

no test coverage detected