From 2aaf0b669e52ce95358db5abfb82866975f13870 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 1 Aug 2018 12:34:29 -0300 Subject: [PATCH] Bug 21139: Floating toolbar - Resize toolbar on window resize Prior to this patch the toolbar was not resized when the window was resized --- koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js | 5 +++++ 1 file changed, 5 insertions(+) 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 9b98c5d172..3a8a494e06 100644 --- a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js +++ b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js @@ -70,6 +70,11 @@ tbh.removeClass("floating"); } }); + + $(window).resize(function() { + var p = $(tbh).parents('div').first(); + $(tbh).width(p.width()-10); + }); } }; })(jQuery, window); -- 2.11.0