diff --git a/src/components/LibraryItem.tsx b/src/components/LibraryItem.tsx index 54405eb..110af0a 100644 --- a/src/components/LibraryItem.tsx +++ b/src/components/LibraryItem.tsx @@ -100,6 +100,26 @@ export class LibraryItem extends React.Component { + return item.expanded == true; + }); + if (isThereChildItemsToExpand.length == 0) { + setTimeout(() => { + let elem = ReactDOM.findDOMNode(this); + elem.scrollIntoView(false); + }, 0); + } + + } + } + render() { if ((this.props.libraryContainer.state?.hostingContext == HostingContextType.home) && this.props.data.hiddenInWorkspaceContext){