jerosoler / Drawflow

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

Hi, I am facing an issue while connecting the nodes. the connecrtion doesn't start from the centre but begins a bit below. Sharing the screenshot. Can u please help #283

Closed MaleehaYasvi closed 2 years ago

MaleehaYasvi commented 2 years ago
drawflow issue
jerosoler commented 2 years ago

Hi @MaleehaYasvi

Try: https://github.com/jerosoler/Drawflow/issues/123#issuecomment-784149366

MaleehaYasvi commented 2 years ago

No, its not working

jerosoler commented 2 years ago

Can you detail more information about your code?

Does it have a fixed high or a percentage? Can you try a fixed?

MaleehaYasvi commented 2 years ago

drawflow {

position: relative; text-align:fixed; width: calc(100vw - 301px); height: calc(100% - 90px); top: 40px; background: var(--background-color); background-size: 25px 25px; background-image: linear-gradient(to right, #f1f1f1 1px, transparent 1px), linear-gradient(to bottom, #f1f1f1 1px, transparent 1px); } This is the css I have written

jerosoler commented 2 years ago

Try for discart:

#drawflow {
...
width: 800px;
height:800px;
...
}
MaleehaYasvi commented 2 years ago

I tried, it is not working

MaleehaYasvi commented 2 years ago

Is there any other way we can do to resolve this?

jerosoler commented 2 years ago

Can you provide your code?

Or better yet! Create a codesanbox code?

Are you using some kind of library? Bootstrap type? Can you remove the css from the library to discard?

MaleehaYasvi commented 2 years ago

I am using materialise css and doing this in vue 2

jerosoler commented 2 years ago

Can you provide an example of your code in codesandbox, codepen ...?

MaleehaYasvi commented 2 years ago

https://codepen.io/KikePuma/pen/OJXXXdb I am following this code

jerosoler commented 2 years ago

That code is working.

We need to see the code that is not working.

MaleehaYasvi commented 2 years ago

Its working now. I added margin in connection in css.