File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/resources/views/base/inc Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 4949 document .querySelectorAll (' .sidebar-toggler' ).forEach (function (toggler ) {
5050 toggler .addEventListener (' click' , function () {
5151 sessionStorage .setItem (' sidebar-collapsed' , Number (! document .body .classList .contains (sidebarClass)))
52+ // wait for the sidebar animation to end (250ms) and then update the table headers because datatables uses a cached version
53+ // and dont update this values if there are dom changes after the table is draw. The sidebar toggling makes
54+ // the table change width, so the headers need to be adjusted accordingly.
55+ setTimeout (function () {
56+ if (typeof crud !== " undefined" && crud .table ) {
57+ crud .table .fixedHeader .adjust ();
58+ }
59+ }, 300 );
5260 })
5361 });
5462 // Set active state on menu element
You can’t perform that action at this time.
0 commit comments