problems.tree compute width

compute width so we get the exact width for the svg graphic