mirror of
https://github.com/grocy/grocy.git
synced 2026-04-03 19:36:16 +02:00
Improved tables horizontally scrollbar appearance (fixes #1476)
This commit is contained in:
parent
f2a0b7cded
commit
4086a63ebd
|
|
@ -896,7 +896,7 @@ $('.dropdown-item').has('.form-check input[type=checkbox]').on('click', function
|
||||||
$('.table').on('column-sizing.dt', function(e, settings)
|
$('.table').on('column-sizing.dt', function(e, settings)
|
||||||
{
|
{
|
||||||
var dtScrollWidth = $('.dataTables_scroll').width();
|
var dtScrollWidth = $('.dataTables_scroll').width();
|
||||||
var tableWidth = $('.table').width();
|
var tableWidth = $('.table').width() + 100; // Some extra padding, otherwise the scrollbar maybe only appears after a column is already completely out of the viewport
|
||||||
|
|
||||||
if (dtScrollWidth < tableWidth)
|
if (dtScrollWidth < tableWidth)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user