Skip to content

Nodes with different width and only have one child #753

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

Open
ajangrokim opened this issue Sep 4, 2024 · 0 comments
Open

Nodes with different width and only have one child #753

ajangrokim opened this issue Sep 4, 2024 · 0 comments

Comments

@ajangrokim
Copy link

I found an issue if I set element width with class ".orgchart .node .title" and ".orgchart .node .content" to "auto" to enabled different node width. The problem was child position if its parent has only 1 child, the position of the child not correctly aligned.

Then I add this to my css:

.orgchart .nodes {
	justify-content: center; /* Penting untuk nodes dengan lebar berbeda-beda dan hanya punya 1 child. */
}

and it works.

Sorry for my english.

Repository owner deleted a comment from mm05112 Sep 27, 2024
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

No branches or pull requests

1 participant