From bcf3c3bae5d59fa359664f2568c8278218a7827e Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Mon, 20 Apr 2020 11:13:40 +0200
Subject: [PATCH] Bug 25186: Fix accordion sections height in columns
 configuration page

The height for each section was the height of the highest section.
Now the height is set to the length of the section.

Test plan:
Go to Administration > Column configuration
Open the sections and confirm that the height fits its content.

QA: note that I guess "autoHeight: false" was meant to acchieve that,
but it does not exist in the API of the plugin.
---
 .../intranet-tmpl/prog/en/modules/admin/columns_settings.tt     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt
index 125c6dc6bd..b16807f702 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt
@@ -206,7 +206,7 @@
         $(document).ready( function() {
             var accordion = $( "#modules" ).accordion({
                     collapsible: true,
-                    autoHeight: false,
+                    heightStyle: "content",
                     header: "h3",
                 [%- IF panel -%]
                     [%# we were asked to show a specific panel, usually on update %]
-- 
2.20.1