From 16db28c175be7a2815878edde8a9698738ebe0e2 Mon Sep 17 00:00:00 2001 From: Chloe Zermatten Date: Mon, 30 Sep 2024 15:03:23 +0000 Subject: [PATCH] Bug 37730: Batch patron modification header scroll When scroling down /cgi-bin/koha/tools/modborrowers.pl, there is a point where the table header leaves the normal flow of the page to stick to the top of the screen instead. When this occurs, the header becomes fixed: if scrolling through the table horizontally, only the body will move. This is an issue as it means that in this situation, some column headers cannot be viewed and the data does not necessarily match the header under which it is found. This patch resolves this issue by allowing the header to scroll horizontally and ensuring that the width of the column headers still match that of the columns themselves. Test plan: A) Reproduce the bug as per Pedro's intructions: Signed-off-by: David Nind --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index 46ef2f417d..e398e1241b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -461,7 +461,8 @@ [% IF borrowers %] let patron_table = KohaTable("borrowerst", { "order": [[ 1, "asc" ]], - "autoWidth": false, + "autoWidth": true, + "scrollX": true, }, table_settings); $("#selectallbutton").click(function() { -- 2.39.5