temporal fix for dropdown menus beign hide (#4798)

Right now the best solution to solve this issue is to set a minimum
height for the `.table-responsive` wrapper. The height is calculated
by the minimum height of a scrollable-dropdown, plus a delta used to
avoid that a menu overlays the button.
This commit is contained in:
gabryon99 2020-12-25 22:55:15 +01:00
parent 7c1926fde0
commit 3db7c2f6e5
3 changed files with 9 additions and 9 deletions

View file

@ -168,13 +168,7 @@ print([[
$(document).ready(function() {
$('.table-responsive').on('shown.bs.dropdown', function (e) {
var $table = $(this),
$menu = $(e.target).find('.dropdown-menu'),
tableOffsetHeight = $table.offset().top + $table.height(),
menuOffsetHeight = $menu.offset().top + $menu.outerHeight(true);
if (menuOffsetHeight > tableOffsetHeight)
$table.css("padding-bottom", menuOffsetHeight - tableOffsetHeight);
console.log(e);
});
$('.table-responsive').on('hide.bs.dropdown', function () {