Skip to content

Commit

Permalink
move contain to virtual-scroll parent (#2166)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank99 authored Jul 23, 2024
1 parent ba6811b commit 660b828
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/itwinui-react/src/utils/hooks/useVirtualScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ import type { ScrollToOptions, Virtualizer } from '@tanstack/react-virtual';
import React from 'react';

const css = /*css*/ `
:host {
contain: layout;
background-color: var(--iui-color-background);
}
[data-iui-virtualizer='root'] {
min-inline-size: 100%;
contain: layout;
position: relative;
}
::slotted([data-iui-virtualizer='item']) {
Expand Down

0 comments on commit 660b828

Please sign in to comment.