Skip to content

Instantly share code, notes, and snippets.

@mtetlow
Last active August 29, 2015 14:10
Show Gist options
  • Save mtetlow/64cd867dd44aa4b3864d to your computer and use it in GitHub Desktop.
Save mtetlow/64cd867dd44aa4b3864d to your computer and use it in GitHub Desktop.
<script>
document.addEventListener('DOMContentLoaded', pageFullyLoaded, false);
function pageFullyLoaded(){
var body = document.body,
html = document.documentElement;
var height = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight );
alert(height);
Sfdc.canvas.publisher.resize( {height : height+'px'});
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment