angular-tree-component icon indicating copy to clipboard operation
angular-tree-component copied to clipboard

sizeChanged() method removed?

Open stogle opened this issue 9 years ago • 6 comments

The TreeComponent.sizeChanged() method was recently removed by https://github.com/500tech/angular-tree-component/commit/f86c58366bc8f12af956fa2d7bf346a07e873557.

The docs say I need to call this method when a hidden tree with virtual scroll becomes visible. Is this no longer the case?

stogle avatar Sep 13 '17 21:09 stogle

I have the same problem. The tree is hidden and looks weird when made visible but i can't call the sizeChanged() method since it's no longer present.

velimirp avatar Sep 14 '17 12:09 velimirp

I have the same problem, but I found solution: this.tree.treeModel.virtualScroll.setViewport(this.tree.treeModel.virtualScroll.viewport);

HATyCEHKA avatar Oct 10 '17 15:10 HATyCEHKA

@adamkleingit could you explain why TreeComponent.sizeChanged() was removed? It's still mentioned in the docs here and here.

stogle avatar Oct 27 '17 15:10 stogle

I must have deleted it by mistake when doing some cleanup. Will be returned in 6.0.0

adamkleingit avatar Nov 25 '17 14:11 adamkleingit

Published in 6.0.0

adamkleingit avatar Nov 25 '17 15:11 adamkleingit

Looks like it's still an issue in 7.0.1

anhvupham avatar Jan 10 '18 01:01 anhvupham