vitch / jScrollPane

Pretty, customisable, cross browser replacement scrollbars

Home Page:http://jscrollpane.kelvinluck.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JscrollPane not resizing automatically when deleting an element from the table

Mitzzzzz opened this issue · comments

$(document).ready(function(){

 $(function()
        {
            $('.master-table-content').jScrollPane(
                {       
                    autoReinitialise: true,

                }
            );
  });

    $(document).on("click",".delete-button",function(){
        $(this).closest(".master-row").remove();
        $('.master-table-content').jScrollPane();

    });

});

height of the JspContainer remains as the old height.. Please suggest a fix

With autoReinitialise set you shouldn't need to re-call jScrollPane.

Do you have a URL showing the problem? Ideally on jsbin or jsfiddle...