Stick table not applied when the element is not visible during ajax load #18417
Labels
c: Design / UI
For issues that impact Matomo's user interface or the design overall.
Milestone
Expected Behavior
Stick table should be canceled on the table has X-axis scrolling
Current Behavior
I was on another issue notice the stick table has a bug, that issue is related to one of my PR. #18124
The problem is when the dataTableScroller is not visible during an ajax load. it won't process
overflow-x', 'scroll'
, leading the entire page to scroll on the X-axis.Steps to Reproduce (for Bugs)
To reproduce this, on the
goals overview
page, when you have more than 10 goals, it should appear.Related Code
matomo/plugins/CoreHome/javascripts/dataTable.js
Lines 119 to 129 in 9efa63a
Possible Solution
I guess there are 2 solutions. Wait ajax is finished if there is one. then call enable function, or do an internal time, check it class is visible, once it's visible run the function and clear the timer.
The text was updated successfully, but these errors were encountered: