Bug 21139: Floating toolbar - Resize toolbar on window resize

Prior to this patch the toolbar was not resized when the window was
resized

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:34:29 -03:00 committed by Nick Clemens
parent b5520f3e01
commit 5ecf4da7d4

View file

@ -70,6 +70,11 @@
tbh.removeClass("floating");
}
});
$(window).resize(function() {
var p = $(tbh).parents('div').first();
$(tbh).width(p.width()-10);
});
}
};
})(jQuery, window);