-
-
Notifications
You must be signed in to change notification settings - Fork 202
Grid Multi-Body: Native Vertical Scrollbar & Alignment Spacer #9611
Copy link
Copy link
Open
Labels
aienhancementNew feature or requestNew feature or requestgridRelated to the Neo.grid packageRelated to the Neo.grid package
Description
Problem
In the Grid Multi-Body architecture, the bodyWrapper natively handles vertical scrolling (overflow-y: scroll). However, this introduced a 15px layout shift where the grid bodies become horizontally misaligned with the headerWrapper, which lacks a vertical scrollbar.
Solution
- Remove
scrollbar-width: nonefrombodyWrapperto allow the native vertical scrollbar to be visible at the far right edge of the grid. - Dynamically measure the browser's native scrollbar width.
- Inject a CSS spacer (e.g.
padding-right) into theheaderWrapperwhenever the vertical scrollbar is active to restore perfect horizontal alignment between the headers and the cells.
This resolves the missing vertical scrollbar thumb while preserving zero-jitter native vertical compositing.
Task List
- Modify
.neo-grid-body-wrapperCSS. - Calculate native scrollbar width in JS.
- Update
Header.mjsorContainer.mjsto inject the compensation spacer.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aienhancementNew feature or requestNew feature or requestgridRelated to the Neo.grid packageRelated to the Neo.grid package