From 2fb5e951f07e437f417b64ea645954c1f55ec816 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 --- 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.11.0