Skip to content

Commit

Permalink
simple tree glitch fix (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanad94 authored Nov 6, 2023
1 parent 4e187dd commit 6119fe9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/sensenet/src/components/tree/tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function Tree({ treeData, itemCount, onItemClick, loadMore, isLoading, ac
)
}
return (
<MuiList key={key} style={style}>
<MuiList key={key} style={{ display: 'flex', paddingTop: '0px', paddingBottom: '0px', flexDirection: 'column' }}>
{renderItem(treeData.children?.[index], index.toString(), 10)}
</MuiList>
)
Expand Down Expand Up @@ -189,6 +189,7 @@ export function Tree({ treeData, itemCount, onItemClick, loadMore, isLoading, ac
}
setElements([...loadMoreElements])
}}
containerStyle={{ overflow: 'initial' }}
rowRenderer={rowRenderer}
rowCount={itemCount}
style={{ outline: 'none' }}
Expand Down

0 comments on commit 6119fe9

Please sign in to comment.