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

Method requestChangeSize

src/service/mutator-interface.js:36–36  ·  view source on GitHub ↗

* Return a promise that requests the runtime to update the size 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 forceChangeSize, the runtime * may refuse to make a change in whi

(element, newHeight, newWidth, opt_newMargins, opt_event)

Source from the content-addressed store, hash-verified

34 * @param {?Event=} opt_event
35 */
36 requestChangeSize(element, newHeight, newWidth, opt_newMargins, opt_event) {}
37
38 /**
39 * Expands the element.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected