Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unstable Positioning #1

Closed
AykutSarac opened this issue Feb 6, 2022 · 2 comments
Closed

[BUG] Unstable Positioning #1

AykutSarac opened this issue Feb 6, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@AykutSarac
Copy link
Owner

The issue may be caused by the dagre library but could be the react-flow-renderer itself. Briefly, when you paste a data that will take more space in the Flow Renderer area, the positioning will be incorrect until the window is refreshed (as JSON is already saved in the localStorage).

Instructions:

  1. Clear localStorage and refresh to make sure environment is ready
  2. Paste a wider and more nested data (e.g https://api.opensource.org/licenses/copyleft)
  3. The problem can be seen at Flow Renderer
  4. Once the window is refreshed the positioning will be corrected
@AykutSarac AykutSarac added bug Something isn't working 🙋🏻‍♂️help wanted Extra attention is needed labels Feb 6, 2022
@AykutSarac
Copy link
Owner Author

It could be solved with by assigning the node and edge values from useStoreState hook of react-flow-renderer to React Flow component.

@AykutSarac AykutSarac removed the 🙋🏻‍♂️help wanted Extra attention is needed label Feb 7, 2022
@AykutSarac
Copy link
Owner Author

Solved with #3

AykutSarac pushed a commit that referenced this issue Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant