OrgChart
OrgChart copied to clipboard
Nodes with different width and only have one child
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.