While trying to make a blank WordPress Dashboard and insert an iframe into the empty space, I found that the iframe can only have a fixed height.
But to integrate this customization nicely a 100% height is needed.
In this WordPress StackExchange Q&A, I wrote the technique to make a completely blank Dashboard, hiding the icon and title, Screen Options and all widgets (default and added by plugins).
If I use the following jQuery to inject an iframe, it doesn’t occupies a 100% height, no matter what CSS I add to the admin stylesheet…
$('#wpbody').html(
'<iframe src="http://example.com"
frameborder="0" id="myframe"
style="height:100%;margin:0;padding:0;left:0;top:0"
scrolling="auto" width="100%" height="100%"></iframe>'
);
The question is: how to make that iframe fill all the #wpbody
space and keep it that way?
Found the solution in this blog post (thanks a bunch, Jim, beautiful code!).
Coupled with that WordPress StackExchange Q&A, the following will display a full size iframe inside the Dashboard screen.