wesnolte/jOrgChart — pull request #2 by neilbowers (2012-01-19 15:53:50+00:00)
Title: Improvement in layout, IE7 fix, and collapsed sub-trees

Hi Wes,

Thanks for your OrgChart plugin. I was working on something very similar, but you're further along than me!
I've made three changes:

[1]

Side padding for nodes meant that with deep trees, as you expanded/closed sub-trees, things would move a little. This also meant that on some older browsers the lines wouldn't align with nodes. Now renders cleanly on IE 7/8/9, Chrome, Firefox, Safari, Opera and Camino.

[2]

On IE7 the horizontal lines weren't showing up. The fix was just to put an inside the relevant TD elements.

[3]

Added the ability to start off with parts of the tree collapsed. Just add class=collapsed to the relevant LI element.

cheers,
Neil