-
-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Description
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/stackblitz-starters-bwrbuj3g?file=src%2Fmain.ts
Steps to reproduce:
- Create a table or list using ng-scrollbar to handle both X and Y-axis scroll behavior.
- Apply cdkVirtualScrollViewport for virtual scrolling in the body of the table.
- Apply ng-scrollbar with both vertical and horizontal scroll orientation set to 'auto'.
- Observe that the Y-axis scrollbar works, but the X-axis scrollbar does not show as expected, either being hidden or not functioning correctly.
Expected Behavior
Both the X-axis and Y-axis scrollbars should appear, with X-axis scrolling enabled horizontally and Y-axis scrolling enabled vertically. The X-axis scrollbar should work without any issues when the content exceeds the available width.
Actual Behavior
- The Y-axis scrollbar works properly, allowing for vertical scrolling through the content.
- The X-axis scrollbar does not appear or work as expected. It seems to be hidden or non-functional, even though it should be visible when horizontal scrolling is needed.
Note (Separate Issue, not directly related to X-axis):
When scrolling vertically, the Y-axis thumb (the draggable handle) aligns correctly at the top when the list is at the start. However, when scrolling to the bottom of the list, the thumb does not fully reach the bottom of the scroll area — it stops around 5 to 10px above the end instead of perfectly reaching the bottom edge.
Environment
- Angular: 18.2.13
- ngx-scrollbar: 16.1.1
- Browser(s): Google Chrome 134.0
- Operating System: Windows
Metadata
Metadata
Assignees
Labels
No labels