fzaninotto / CodeFlower

Source code visualization utility written in JavaScript with d3.js. Does your code look beautiful?
http://www.redotheweb.com/CodeFlower
MIT License
694 stars 321 forks source link

Issue opening and closing folder nodes with only a folder inside #22

Open grouss opened 7 years ago

grouss commented 7 years ago

It seems I have a small bug or misunderstanding of the specs. Clicking on a folder node which only contains another folder node, I see a "free node" that is still displayed. Before the clik capture d ecran 2016-11-28 a 15 45 40 after the click capture d ecran 2016-11-28 a 15 46 06 Is it a bug or is it part of the spec that would not allow folder node without leaf ? It seems ok with folders containing two other folder nodes

grouss commented 7 years ago

by the way I was able to reproduce it with the demo available here http://www.redotheweb.com/CodeFlower/ capture d ecran 2016-12-06 a 16 07 06