paulremo / NRPMHandbook

Repository to store and track the development on the ADS/Matrisk project for developing a jupyter book of the NRPM handbook.
Other
1 stars 1 forks source link

Iframes too high #3

Closed paulremo closed 2 years ago

paulremo commented 2 years ago

Iframes get resized to the window height on reloading the page. They should automatically resize to the content height.

Possible cause This issue could be related to the \02_NRPMHandbook_static\js\resize_iframe.js function that is responsible for dynamically setting the iFrame height.

paulremo commented 2 years ago

This was fixed for a single page (miscellaneous\handbook\rp\reliability_data_sm.md) in dbd7e23f065047728f45b96ea5f1e46e09f46fe8.

The fix reverts back to using the onload event of the iframe tag but passes the calling object with onload="resize_iframe(this)".

Attention: This does not work on localhost (at least in Chrome) but works fine on the webserver. To test it locally, use a local web-server (e.g., this.

@csxADS please propagate the changes from miscellaneous\handbook\rp\reliability_data_sm.md to all other included iframes.

csxADS commented 2 years ago

All iframes updated