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

Method leaveFullOverlayMode

src/friendly-iframe-embed.js:652–678  ·  view source on GitHub ↗

* @return {!Promise}

()

Source from the content-addressed store, hash-verified

650 * @return {!Promise}
651 */
652 leaveFullOverlayMode() {
653 return this.measureMutate_({
654 mutate: () => {
655 resetStyles(this.iframe, [
656 'position',
657 'left',
658 'right',
659 'top',
660 'bottom',
661 'width',
662 'height',
663 ]);
664
665 // we're not resetting background here as we need to set it to
666 // transparent permanently.
667 resetStyles(this.getBodyElement(), [
668 'position',
669 'top',
670 'left',
671 'width',
672 'height',
673 'bottom',
674 'right',
675 ]);
676 },
677 });
678 }
679}
680
681/**

Calls 3

measureMutate_Method · 0.95
getBodyElementMethod · 0.95
resetStylesFunction · 0.90

Tested by

no test coverage detected