mbraak / jqTree

Tree widget for jQuery
https://mbraak.github.io/jqTree/
Apache License 2.0
1.02k stars 177 forks source link

No left alignment with "buttonLeft: false" #662

Closed odungern closed 3 years ago

odungern commented 3 years ago

When selecting "buttonLeft: false" upon tree creation, all is fine with nodes having children: The icon moves to the right and the text (name) moves to the left. In contrast, the name of nodes without children - having no icon to move - don't move to the left. In the following example the four nodes are on the same hierarchical level, but not aligned to the left:

grafik

Used: jqTree v1.6.1 (js, css)

(This is the first problem we ever have found with jqTree. In our team developing the SpecIF Editor it has a high reputation for functional design and quality. Thanks a lot for your contribution!)

mbraak commented 3 years ago

I'll have a look

mbraak commented 3 years ago

I added a pr with a fix. #664 Could you have a look if this works for you?

odungern commented 3 years ago

.. thanks a lot for the quick fix. Will have a look shortly!

odungern commented 3 years ago

yes, works for me!

https://github.com/mbraak/jqTree/pull/664#issuecomment-932960089

Thanks a lot!