Skip to content

Changing position of root node after re-render tree #93

@phollaki

Description

@phollaki

Hi Pierre! I am using Treeviz tree diagram with React. I am changing isHorizontal props of tree dinamically, whenever tree data is too long i switch to display it vertically and when my dataset is small I display it horizontally. I want to do that if i click one of the tree nodes it changes the dataset re-render my tree. It successfully changes from horizontal to vertical and vica versa but my root will stay in the same position. How could i centralize my tree whenever it re-renders.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions