Dispatch resize event if sidebar collapsed

This commit is contained in:
Deon George 2019-11-22 14:22:37 +11:00
parent 6c60298e8f
commit 1774987dea
No known key found for this signature in database
GPG Key ID: 7670E8DC27415254

View File

@ -60,7 +60,12 @@
$(this).removeClass('hold-transition');
});
}else{
$("body").addClass('sidebar-collapse');
$("body")
.addClass('sidebar-collapse')
.delay(500).queue(function () {
window.dispatchEvent(new Event('resize'));
$(this).dequeue();
});
}
}
}