﻿// Left menu ul has absolute positioning and doesnt affect page height.
// This script sets a min-height to content div if left menu is higher than content.
$(document).ready(function () {

    var nav = $("#nav ul ul");

    if (nav != null) {
        var targetheight = nav.height() + 50;
        var content = $("#content");

        if (content != null && content.height() < targetheight)
            content.css("min-height", targetheight);
    }
});
