Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement in layout, IE7 fix, and collapsed sub-trees #2

Merged
merged 3 commits into from
Jan 19, 2012

Conversation

neilb
Copy link
Contributor

@neilb neilb commented Jan 19, 2012

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

…les to get mis-aligned.

Every sub-tree pushed things off by one pixel. With a deep tree, you end up with lines not meeting nodes. This fixes it.
…ing space inside the relevant TD elements.

Still works fine on Safari, Chrome, IE8&9, Firefox, and Camino
@wesnolte
Copy link
Owner

Great work Neil :) A few small tweaks have added a lot of value. Someone just poked me about the IE7 thing an hour ago!

@wesnolte wesnolte closed this Jan 19, 2012
wesnolte added a commit that referenced this pull request Jan 19, 2012
Improvement in layout, IE7 fix, and collapsed sub-trees
@wesnolte wesnolte merged commit 4f4d2a9 into wesnolte:master Jan 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants