mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
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:
parent
7c1926fde0
commit
3db7c2f6e5
3 changed files with 9 additions and 9 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue