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

Method forceChangeHeight

src/base-element.js:868–874  ·  view source on GitHub ↗

* 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. * @param {number} newHeight * @public

(newHeight)

Source from the content-addressed store, hash-verified

866 * @public
867 */
868 forceChangeHeight(newHeight) {
869 Services.mutatorForDoc(this.getAmpDoc()).forceChangeSize(
870 this.element,
871 newHeight,
872 /* newWidth */ undefined
873 );
874 }
875
876 /**
877 * Return a promise that requests the runtime to update

Callers 15

layoutCallbackMethod · 0.80
renderMethod · 0.80
layoutCallbackMethod · 0.80
layoutCallbackMethod · 0.80
layoutCallbackMethod · 0.80
layoutCallbackMethod · 0.80
layoutCallbackMethod · 0.80
layoutCallbackMethod · 0.80

Calls 2

getAmpDocMethod · 0.95
forceChangeSizeMethod · 0.45

Tested by

no test coverage detected