From 1e304f9bb70393a4aeba2166aca8e24e22b74124 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 11 Feb 2025 10:25:50 +0100 Subject: [PATCH] Bug 39080: Adjust the fixed header after we added the column filters If a column contains a dropdown list (for libraries for instance), the width of the column will be modified, but DT's fixed header need to be adjusted. Test plan: One example where this problem can be observed is the "holds to pull" table: "Title" is followed by "Libraries". Test without and with the patch, and confirm that the display/offset is fixed. --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 084cb8c82c8..ad42ff5a920 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -872,6 +872,7 @@ function _dt_add_filters(table_node, table_dt, filters_options = {}) { } } ); _dt_add_delay_filters(table_dt, table_node); + table_dt.fixedHeader.adjust(); } function _dt_add_delay(table_dt, table_node) { -- 2.34.1