After my dashboard initializes and is fully loaded, I need to get the window height of the embed inside the iframe
. Ideally, I'd like to get innerHeight
inside of onFirstInteractive
, but am unable to do so.
function initViz() {
var containerDiv = document.getElementById("vizContainer");
var url = "http://public.tableau.com/views/RegionalSampleWorkbook/Storms";
var options = {
onFirstInteractive: function() {
// How do I get the height of the rendered contents?
}
};
var viz = new tableau.Viz(containerDiv, url, options);
}