Bootstrap-treeview onNodeExpanded gets the current height, but each time it gets the height before deployment.

1.bootstrap-treeview onNodeExpanded gets the current height, but each time it gets the height before deployment. I want to get the current height after deployment
2.
clipboard.png

clipboard.png

clipboard.png

3.console.log (event) sees that the clientHeight inside is 1049; but console.log (event.currentTarget.clientHeight) is 439; this is the height before deployment, and the height after expansion is 1047. This is why


has not used bootstrap-treeview, to give an idea to see if it is correct!
is there an animation effect in the deployment? You can try to set a 1-2 second timer to print to see the results.

Menu