Custom scroll bar not updating for dynamic datatable

I had included custom scrollbar library.
It is working fine for initial load.
I am dynamically resizing my datatable. At that time, how can i update the scrollbar based on new datatable size.