We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f7642d commit 3017782Copy full SHA for 3017782
js/dataframe/index.tsx
@@ -374,11 +374,11 @@ const ShinyDataGrid: FC<ShinyDataGridProps<unknown>> = (props) => {
374
const headerRowCount = table.getHeaderGroups().length;
375
376
// Assume we're scrolling until proven otherwise
377
- let scrollingClass = "scrolling";
+ let scrollingClass = "";
378
const scrollHeight = containerRef.current?.scrollHeight;
379
const clientHeight = containerRef.current?.clientHeight;
380
- if (scrollHeight && clientHeight && scrollHeight <= clientHeight) {
381
- scrollingClass = "";
+ if (scrollHeight && clientHeight && scrollHeight > clientHeight) {
+ scrollingClass = "scrolling";
382
}
383
384
const makeHeaderKeyDown =
0 commit comments