Skip to content

Commit 70e9872

Browse files
author
Corey Shott
committed
Override CSS property of the frozen header
- the "select" column (checkboxes) are frozen by default but only the header row actually freezes. - this causes the alignment to get off and looks weird when scrolling horizontally - override the transform property of the frozen columns so they aren't frozen
1 parent 580ebef commit 70e9872

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

frontend/src/index.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,14 @@ pre {
8888
.Select-menu {
8989
max-height: 400px;
9090
}
91+
92+
// override stickiness of checkbox-select frozen header row:
93+
// https://github.com/adazzle/react-data-grid/issues/1386#issuecomment-510532495
94+
// the full select column isn't frozen so alignment gets off during horizontal scrolling
95+
.react-grid-Row .react-grid-Cell--frozen {
96+
transform: translate3d(0px, 0px, 0px) !important;
97+
}
98+
99+
.react-grid-HeaderRow .react-grid-HeaderCell--frozen {
100+
transform: translate3d(0px, 0px, 0px) !important;
101+
}

0 commit comments

Comments
 (0)