mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 01:55:47 +00:00
Fixed dropdown menu in tables overflow
This commit is contained in:
parent
e3ab943fe7
commit
b15740bded
@ -341,6 +341,10 @@ a:not([href]) {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.force-overflow-visible {
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
|
|
||||||
.grab-cursor {
|
.grab-cursor {
|
||||||
cursor: grab;
|
cursor: grab;
|
||||||
}
|
}
|
||||||
|
@ -719,11 +719,28 @@ $('.table').on('column-sizing.dt', function(e, settings)
|
|||||||
if (dtScrollWidth < tableWidth)
|
if (dtScrollWidth < tableWidth)
|
||||||
{
|
{
|
||||||
$('.dataTables_scrollBody').addClass("grab-cursor");
|
$('.dataTables_scrollBody').addClass("grab-cursor");
|
||||||
} else
|
$('.dataTables_scrollBody').removeClass("force-overflow-visible");
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
$('.dataTables_scrollBody').removeClass("grab-cursor");
|
$('.dataTables_scrollBody').removeClass("grab-cursor");
|
||||||
|
$('.dataTables_scrollBody').addClass("force-overflow-visible");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$('td .dropdown').on('show.bs.dropdown', function(e)
|
||||||
|
{
|
||||||
|
if ($('.dataTables_scrollBody').hasClass("grab-cursor"))
|
||||||
|
{
|
||||||
|
$('.dataTables_scrollBody').addClass("force-overflow-visible");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$("td .dropdown").on('hide.bs.dropdown', function(e)
|
||||||
|
{
|
||||||
|
if ($('.dataTables_scrollBody').hasClass("grab-cursor"))
|
||||||
|
{
|
||||||
|
$('.dataTables_scrollBody').removeClass("force-overflow-visible");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
$(window).on("message", function(e)
|
$(window).on("message", function(e)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user