SanichKotikov / relatives-tree

A tiny library for calculating specific JSON data to family tree nodes and connectors 🌳
https://sanichkotikov.github.io/react-family-tree-example/
MIT License
45 stars 21 forks source link

Overlaps #17

Closed wojciechkibitlewski closed 2 years ago

wojciechkibitlewski commented 2 years ago

I am having a small problem with a very elaborate tree. Sometimes a div from FamilyNode overlaps another div. (screens below)

image image

Here the boxes have not shifted and intermingle - which is a mistake image

Where can I look for a solution? Regard Wojtek

SanichKotikov commented 2 years ago

Hi. Thanks for report. As always you have at least two options:

wojciechkibitlewski commented 2 years ago

https://github.com/wojciechkibitlewski/react-family-tree/blob/main/src/family.json

wojciechkibitlewski commented 2 years ago

I entered the JSON objects twice. Always - with this nodes layout - the same error appears.

wojciechkibitlewski commented 2 years ago

I see a problem on the third level (or fourth), but I don't know what it is. If the module "Monika Romanowska" is linked only to "Franciszek Grzeszczyk" - an error arises. If I add another node 'married' to the module 'Monika Romanowska' - everything is ok. The JSON looks correct.

image image

SanichKotikov commented 2 years ago

Please check that you are using relatives-tree v3.1.0

wojciechkibitlewski commented 2 years ago

I used react-family-tree... ok, now I have corrected the dependencies and it works. thx