well, one option is to calculate one level deeper,...
# tornadofx
c
well, one option is to calculate one level deeper, so that when you open a branch all items in it have their children calculated. Not the best solution for all cases, but it's a good fallback in case no other leaf condition is given