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 <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2018-08-01 12:31:01 -03:00 committed by Nick Clemens
parent 2588811ef2
commit b5520f3e01

View file

@ -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);