jsplumb icon indicating copy to clipboard operation
jsplumb copied to clipboard

Endpoint offset issue

Open night-fury-web opened this issue 8 years ago • 6 comments

image The connection endpoint is offset when it is showing on bottom of the item. And sometimes the connection starts from blank space instead of start endpoint while dragging from endpoint.

Please help me

night-fury-web avatar Sep 04 '17 18:09 night-fury-web

have you got any margin set on those elements?

sporritt avatar Sep 05 '17 10:09 sporritt

No, I didn't set any margin. I checked it on chrome and the margin is 0. It happens only in case of the bottom endpoint. And sometimes when I create a connection between two nodes, the start endpoint is far away from the actual endpoint.

I think these issues may be same.

night-fury-web avatar Sep 05 '17 11:09 night-fury-web

you've got the Container set correctly?

sporritt avatar Sep 05 '17 12:09 sporritt

yeah, I think so. Is there any specific way to check it? image

The offset appears for the bottom endpoint also

night-fury-web avatar Sep 06 '17 21:09 night-fury-web

@sporritt It is working occasionally. I avoided using bottom endpoint. And have another issue. image At initial loading, I added nodes and made connections between nodes. Unfortunately, the connection edges are offset from the target node and they became connected after moving nodes a bit.

night-fury-web avatar Sep 11 '17 17:09 night-fury-web

try updating the offset of the endpoints and repainting the element after the drag-stop event

KartheekJavvaji avatar Feb 28 '18 09:02 KartheekJavvaji