jsplumb / community-edition

The community edition of jsPlumb, versions 1.x - 6.x
https://jsplumbtoolkit.com
Other
236 stars 21 forks source link

draggable set "container: true" but still can drag out of right and bottom bound of container #43

Open heyouxian opened 6 years ago

heyouxian commented 6 years ago

I have set "plumbInstance.draggable(plumbInstance.getSelector('#divId'), {containment: true});" And the div has style position: 'absolute', its direct container div has style position: 'relative'. It's OK for upper and left bound dragging limitation. But for right and bottom bound, the first drag can stop at the boundary. Then I try to drag the div again, it will be out of bound a little (about 20px), then drag and drag, I find the boundary seems to move 20px every time. So the drag boundary enlarged. I'm not sure it's a issue of Katavorio or jsplumb, so issue opened here

PS: my version is "jsplumb": "^2.6.3",

heyouxian commented 6 years ago

I create a codepen to demo this issue in https://codepen.io/heyouxian/pen/GQddZX. you can drag the 2 blocks to bottom edge one by one, then you will find they can be dragged out of bound far and far.

bq-hentai commented 6 years ago

I noticed that the svg width is too long.

abhirocks550 commented 5 years ago

I create a codepen to demo this issue in https://codepen.io/heyouxian/pen/GQddZX. you can drag the 2 blocks to bottom edge one by one, then you will find they can be dragged out of bound far and far.

Did you find any fix?