Skip to content

Commit

Permalink
fix: scrolling bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanad94 committed Mar 13, 2024
1 parent 1f19146 commit fad1c7d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/sensenet/src/components/tree/tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export function Tree({ treeData, itemCount, onItemClick, loadMore, isLoading, ac
)
}
return (
<MuiList key={key} style={{ display: 'flex', paddingTop: '0px', paddingBottom: '0px', flexDirection: 'column' }}>
<MuiList key={key} style={style}>
{renderItem(treeData.children?.[index], index.toString(), 10)}
</MuiList>
)
Expand All @@ -229,14 +229,13 @@ export function Tree({ treeData, itemCount, onItemClick, loadMore, isLoading, ac
flexGrow: 2,
flexShrink: 0,
borderRight: '1px solid rgba(128,128,128,.2)',
overflow: 'unset',
}}>
<AutoSizer>
{({ height, width }) => (
<List
height={height}
width={width}
overscanRowCount={10000}
overscanRowCount={11000}
ref={listRef}
rowHeight={rowHeightFunc}
onRowsRendered={() => {
Expand All @@ -246,7 +245,6 @@ export function Tree({ treeData, itemCount, onItemClick, loadMore, isLoading, ac
}
setElements([...loadMoreElements])
}}
containerStyle={{ overflow: 'unset' }}
rowRenderer={rowRenderer}
rowCount={itemCount}
style={{ outline: 'none' }}
Expand Down

0 comments on commit fad1c7d

Please sign in to comment.