From f697af61cec33395e2c60d4111ebebc9759dd1f3 Mon Sep 17 00:00:00 2001 From: Didier Gautheron Date: Thu, 5 Mar 2020 16:58:02 +0100 Subject: [PATCH] Bug 24814: HTML forms set a minimal width for dropdown combo with empty set. If there's no item, dropdown message "No matches found" is hard to read. Affect: koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt To test: - Select a catalogue notice in Koha intranet. - Open add item form. - Choose a dropdown combo with an empty set, 'j - Shelving control number' is a good candidate. - Apply the patch. - Re select the compo in open add item form. Signed-off-by: Owen Leonard --- koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc index 335420070de..2c600b6992a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc @@ -19,7 +19,9 @@ // 26 is the margin-right of .select2-chosen when allowClear is false width += 26; } - + if (width < 99) { + width = 99; + } return width; }, -- 2.11.0