dabeng / OrgChart

It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.
MIT License
2.83k stars 767 forks source link

Wrong line drawing when using text-center: left; #724

Open Schlumpf9 opened 8 months ago

Schlumpf9 commented 8 months ago

Hello, my website has per default text-align: left; enabled and so I receive the following graph: grafik

As shown the lines of the parents are not displayed correctly. This gets even more worse if the tree is bigger. Then there are also holes between sibblings. Anyone knows how this can be fixed? If i set the overall orgchart parent div to text-align: center; the lines are shown correctly. Only if i omit the centering of the elements breaks the layout.

As my tree is very big, the elements are jumping a lot if i hide or show childrens. Therefore it would be better to use the text-align: left; layout...

mm05112 commented 8 months ago

你的邮件我已收到,愿七色之夏的光辉永远守护你