Search code examples
javascriptjquerysimplemodal

SimpleModal JS height is more then browser height is not scrollable


I am using SimpleModal for a project. But i am facing an issue when the simplemodal dialog box height is more than document height it's not scrollable. It's cut from the bottom.

I have search about it's but nothing works.

Any help is appreciated :)


Solution

  • Check if this is what you want...

    jQuery(function ($) {
    
        $('#basic-modal .basic').click(function (e) {
    
           $('#basic-modal-content').modal();
           $("#simplemodal-container").css({ 'position' : 'absolute'});  
           $(".simplemodal-wrap").removeAttr('style');
           return false;
        });
    });
    

    Thanks