Closed pavelreiter closed 1 year ago
Hello @pavelreiter,
Thank you for clean reporting and suggesting solutions, I fixed it now and created unit tests up to 4 levels,
I published now a hox fix release for this issue with version 1.1.2
Thank you, Amr Hesham
@AmrDeveloper Thank you for quick fix
Describe the bug Child nodes have incorrect depth if they tree is constructed from bottom up with more then 3 levels. Sample tree:
Actual levels of nodes (ignore incorrect parent of 0-0-0-0 and 0-0-0-1):
Problem is caused by the fact that node level update is done only for first level of children when node is added as child to another node, but it should be done recursively.
Easy solution would be to update child levels whenever node level is changed via setLevel.
To Reproduce Steps to reproduce the behavior:
Expected behavior When adding node as child all it's children should have level updated recursively. Also when setting node level via setLevel all it's children level should be recursively updated.
Screenshots N/A
Smartphone (please complete the following information):
Additional context N/A