From b5520f3e019f38cbd2ea75be0a13806f68a2f515 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 1 Aug 2018 12:31:01 -0300 Subject: [PATCH] Bug 21139: Floating toolbar - Remove horizontal scrollbar on resize To test: - add/edit a patron - resize the window => Without this patch a horizontal scrollbar appears when resized shorter Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js index a7789200d1..9b98c5d172 100644 --- a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js +++ b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js @@ -27,7 +27,7 @@ "display": tbh.css("display"), "visibility": "hidden" }); - tbhBis.width(tbh.outerWidth(true)); + tbhBis.width(tbh.innerWidth(true)); tbhBis.height(tbh.innerHeight(true)); tbhBis.attr('id', tbh.attr('id')+'Bis'); // Avoid 2 elts with the same id tbh.after(tbhBis); -- 2.39.2