jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.65k stars 722 forks source link

Connection lines are offset from nodes #327

Closed tyzjames closed 2 years ago

tyzjames commented 2 years ago

Hi! Thanks for this library.

I'm trying to use this library in my angular project, but have hit a roadblock and I can't find the code that is causing this. The connection lines are offset in my graph. I can click on a connection point in the node and drag but the lines are all offset. Do you have an idea on which part of the code is causing this?

Screen Shot 2021-12-17 at 11 20 19 PM
jerosoler commented 2 years ago

Hi!

Thanks!!

View: https://github.com/jerosoler/Drawflow/issues/208 and https://github.com/jerosoler/Drawflow/issues/123 and https://github.com/jerosoler/Drawflow/issues/34#issuecomment-779690035 and https://github.com/jerosoler/Drawflow/issues/37#issuecomment-716220711

tyzjames commented 2 years ago

Thanks for the links! I can confirm that this works:

#drawflow {
  text-align:initial;
  position: relative;
  width: 100%;
  height: 800px;
  border: 1px solid red;
}