5/7/2023 0 Comments Iframe resizer![]() It can be called with via JavaScript:Ĭonst iframes = iFrameResize(, || ) The first () is for the page hosting the iFrames. The package contains two minified JavaScript files in the js folder. ![]() This package can be installed via NPM (npm install iframe-resizer –save). ![]() Iframe-resizer is the result of many 100s of hours of work, if you would like to join others in showing support for the continued development of this project, then please feel free to buy me a coffee. Works with ViewerJS to support PDF and ODF documents. Provides onMouseEnter and onMouseLeave events for the iFrame. Provides custom sizing and scrolling methods.Įxposes parent position and viewport size to the iFrame. Simplified messaging between iFrame and host page via postMessage.įixes in page links in iFrame and supports links between the iFrame and parent page. Provides a range of page size calculation methods to support complex CSS layouts.ĭetects changes to the DOM that can cause the page to resize using MutationObserver.ĭetects events that can cause the page to resize (Window Resize, CSS Animation and Transition, Orientation Change and Mouse events). Height and width resizing of the iFrame to content size.ĭomain authentication for cross domain iFrames. It provides a range of features to address the most common issues with using iFrames, these include: This library enables the automatic resizing of the height and width of both same and cross domain iFrames to fit their contained content.
0 Comments
Leave a Reply. |