Bug with setChildCalcHTML() ?

Hi,

I use the following code to make the item counter appear as superscript:



> navitree.setChildCalcMode(‘leafs’);

> navitree.setChildCalcHTML(’ (’, ‘)’);



After I opened and closed a nodes two or more times, the counter grow more and more; it starts with e.g. “nodeName^3”, and then becomes “nodename^3 3”, …, “nodeName^3 3 3 3 3”, …

Which version of dhtmlxtree are you using?
I can’t reconstruct problem with latest codebase. If problem still occurs for you - please send any kind of sample where problem can be reconstructed ( you can send it directly to support@dhtmlx.com )

never mind - it was my error: I checked the length of each tree item’s label, and shortened it in case it’s too long - that works not with some added HTML item counter :slight_smile: