Dynamically Resizing Kibana iFrames with Javascript and HTML
19 Jan 2018
If you’re struggling to dynamically resize your Kibana iFrames, you will need two things: Javascript and HTML.
Below is some inline Javascript that will be run onload for each iframe. It is important to note that this script will only work on Kibana tables - not other types of visualizations.
Basically, the script checks to see if the Kibana table has loaded yet - if not, it resets the function with a recursive loop.
Once the Kibana iframe’s table has loaded, we grab that height, and resize the iframe accordingly.