-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Wrong Handle position on nodes with dynamic height #174
Comments
Hey, thanks for reporting. Also can you provide a rough node structure? |
Can you maybe provide a codesandbox example? I can't seem to be able to reproduce the issue locally - any resizing of the nodes results in recalculation of handle-bounds, so the edges connect properly. Do all handles have a unique id? They need one if you're going to use multiple source/target handle types. |
@akoboy have you seen my comments? :) I need a little help reproducing the issue properly |
@akoboy ping |
@akoboy ping, can you help me with a sandbox or anything which reproduces the issue? |
Hi @bcakmakoglu, I also experience something similar to this, when using dynamic generated handles / dynamic height and added css transform with translate -50% to the node to make centered on the XY coordinates I did disable this due to that bug tho. But was thinking to look into your example with Teleport and shrink animation, to see if it can be centered with javascript instead visually when dropped :) |
@AlexanderYW When you dynamically generate handles you need to call the If possible, can you provide a minimal reproduction so I can possibly debug the issue? 😅 |
Thanks, might look at the updateNodeInternals if i encounter that issue again Regarding the reproduction repo, sure I can provide one, but it will earliest be in 10 days time ish |
@AlexanderYW Anytime you can provide is fine with me =) I just can't seem to reproduce it myself for some reason. |
@AlexanderYW |
Sadly not @bcakmakoglu ! I had an hour on Thursday and tried doing what I did to experience the issue, but i could not reproduce it, will look at it again later today or beginning next week, I think I'm forgetting something 😵 |
@bcakmakoglu I'm unable to reproduce the issue again I did a basic implementation of what i did when last time when i first met the issue, and i dont see it now. What I did was I implemented "drag n drop components to canvas" and a custom node component with transform -50% on x and y axis to center the dropped component. Maybe the issue is i wasn't using script setup back then.. But I have no clue what it could be |
@AlexanderYW I'm not sure if it's a really good idea to use |
If this problem still persists, please re-open an issue with a possible reproduction of the problem, otherwise I can't really do anything about it. |
Wrong Handle position on nodes with dynamic height
Expected Behavior
When node height changes, handle position will update
Current Behavior
When node height changes, handle position not changing and edge drawn from old position
Steps to Reproduce
Custom node with textarea which changes node height.
Handle component:
Detailed Description
Screencast:
VueFlowEdgePositionBug.mp4
Thank you.
The text was updated successfully, but these errors were encountered: