#fitView doesnt work properly when node is rotated.

1 messages · Page 1 of 1 (latest)

wraith cove
#

fitView fits the view based on if the node wasnt rotated. It doesnt take in consideration the rotation.

vivid shale
#

Do you have a codepen / codesandbox demonstrating this?

steady wagon
#

Rotations aren't supported fyi 🤷‍♂️

vivid shale
# steady wagon Rotations aren't supported fyi 🤷‍♂️

Would a possible "hack" around this be to ensure your nodes always have square dimensions, that way you could render the actual content within those bounds, and still make it appear the way you like, while ensuring that rotation doesn't impact how react flow perceives its bounds?

wraith cove
#

@vivid shale Yeah, this would work.