JscrollPane not resizing automatically when deleting an element from the table
Mitzzzzz opened this issue · 1 comments
Mitzzzzz commented
$(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
vitch commented
With autoReinitialise
set you shouldn't need to re-call jScrollPane
.
Do you have a URL showing the problem? Ideally on jsbin or jsfiddle...