<script>
function FixWorkspace() {
// if you are using a header that is affixed to the top (i.e. SharePoint Ribbon) put the ID or class // here to change the workspace height accordingly.
var header = '#myHeader';
var width = $(window).width();
var height;
if ($(header).length) {
height = $(window).height() - $(header).height();
} else {
height = $(window).height();
}
$('#s4-workspace').width(width).height(height);
}
$(document).ready(function () {
FixWorkspace();
});
$(window).resize(function () {
FixWorkspace();
});
</script>