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

Method updateDimensions

3p/ampcontext-integration.js:84–87  ·  view source on GitHub ↗

* @param {number} width * @param {number} height

(width, height)

Source from the content-addressed store, hash-verified

82 * @param {number} height
83 */
84 updateDimensions(width, height) {
85 userAssert(this.updateDimensionsEnabled_(), 'Not available.');
86 this.requestResize(width, height);
87 }
88
89 /**
90 * Sends bootstrap loaded message.

Callers 5

facebookFunction · 0.80
resizeFunction · 0.80
redditFunction · 0.80
yotpoFunction · 0.80
githubFunction · 0.80

Calls 3

userAssertFunction · 0.90
requestResizeMethod · 0.80

Tested by

no test coverage detected