set min height for short content

by oktaviardi pratama

JavaScript

$(document).ready(function(){

    var wrapHeight = $('.checkout-page .wrap-middle-content').height(),
     windowHeight = $(window).height(),
     bodyHeight = $('body').height(),
     footerHeight = $('.checkout-page .wrap-footer').height();

    if(bodyHeight>wrapHeight){
        var distanceHeight = windowHeight-bodyHeight+footerHeight;
        console.log(wrapHeight +'=wrap height, '+ bodyHeight +'= body height, '+ footerHeight+'=footer height, '+distanceHeight+'=distance height');
        $('.checkout-page .wrap-middle-content').css('min-height',wrapHeight+distanceHeight);
    }
});