DrMartiner
7/12/2013 - 10:02 AM

Set content height to full window after resize

Set content height to full window after resize

setContentHeight = () ->
    $content = $('#content')

    setMainHeight = () ->
        height = $(window).height() - $('#menu').outerHeight() -  $('#footer').outerHeight()
        $content.height height

    setMainHeight()

    $(window).resize () ->
        setMainHeight()


$(document).ready () ->
    setContentHeight()