Skip to content

Commit

Permalink
fix: nav virtualization container
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Mar 20, 2023
1 parent 31f33cb commit 2197737
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/components/organisms/NavigatorPane/ResourceNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ function ResourceNavigator() {

return (
<ListContainer ref={ref}>
<ControlledHeightContainer
<div
style={{
height: `${rowVirtualizer.getTotalSize()}px`,
width: '100%',
position: 'relative',
}}
>
{rowVirtualizer.getVirtualItems().map(virtualItem => {
Expand All @@ -80,7 +82,7 @@ function ResourceNavigator() {
</VirtualItem>
);
})}
</ControlledHeightContainer>
</div>
</ListContainer>
);
}
Expand All @@ -100,8 +102,3 @@ const ListContainer = styled.ul`
overflow-y: auto;
padding: 0 0 12px;
`;

const ControlledHeightContainer = styled.div`
width: '100%';
position: 'relative';
`;

0 comments on commit 2197737

Please sign in to comment.