Skip to content
Snippets Groups Projects
Unverified Commit cdbffffc authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #272 from HumanBrainProject/bugfix/flatTreeGetDataLength

bugfix: virtualScrollViewport cannot getDataLength
parents 565d1e2e 9a1953a5
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,12 @@ export class FlatTreeComponent implements AfterViewChecked {
uncollapsedLevels : Set<string> = new Set()
ngAfterViewChecked(){
/**
* if useDefaultList is true, virtualscrollViewPort will be undefined
*/
if (!this.virtualScrollViewPort) {
return
}
const currentTotalDataLength = this.virtualScrollViewPort.getDataLength()
const previousDataLength = this.totalDataLength
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment