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

Method forceChangeSize

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

* Requests the runtime to change the element's size. When the size is * successfully updated then the opt_callback is called. * @param {!Element} element * @param {number|undefined} newHeight * @param {number|undefined} newWidth * @param {function()=} opt_callback A callback function.

(element, newHeight, newWidth, opt_callback, opt_newMargins)

Source from the content-addressed store, hash-verified

13 * @param {!../layout-rect.LayoutMarginsChangeDef=} opt_newMargins
14 */
15 forceChangeSize(element, newHeight, newWidth, opt_callback, opt_newMargins) {}
16
17 /**
18 * Return a promise that requests the runtime to update the size of

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected