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

Function resizeSuccessHandler

ads/vendors/csa.js:140–147  ·  view source on GitHub ↗
(global, container, requestedHeight)

Source from the content-addressed store, hash-verified

138 * @visibleForTesting
139 */
140export function resizeSuccessHandler(global, container, requestedHeight) {
141 currentAmpHeight = requestedHeight;
142 const overflow = global.document.getElementById('overflow');
143 if (overflow) {
144 setStyle(overflow, 'display', 'none');
145 resizeCsa(container, requestedHeight);
146 }
147}
148
149/**
150 * Hanlder for When a resize request is denied

Callers 1

requestResizeInternalFunction · 0.85

Calls 3

setStyleFunction · 0.90
resizeCsaFunction · 0.85
getElementByIdMethod · 0.45

Tested by

no test coverage detected