Thanks for the explanation Simon. It solved the original problem I
had.
Now I have a slightly new problem. I changed your jsFiddle (http://
jsfiddle.net/sporritt/vbC7V/3/) slightly with the parent div "demo"
having float:auto this was the setup on which i'm originally working
on . (and to demonstrate the issue i put a fixed height and drew a
border around the parent div). when I run the jsFiddle everything
looks fine and the the divs and endpoints paint nicely as they should
be. but since I've allowed overflow and a low height you may notice
the scrollbar appeared. without touching the window1 or window2 if i
scroll the parent div the window1 & window2 gets scrolled as they
should be but the endpoints of those windows remain in the same screen
coordinates, not moving with the scroll along with the windows. If I
do a slight move of a window1 then the endpoint positions correctly
gets updated.
Thanks,
Saminda
On Feb 29, 3:28 pm, Simon Porritt <
simon.porr...@gmail.com> wrote:
> The function at the top of the jsFiddle in which you used jQuery's
> draggable method was being run before the jsPlumb init code, and when
> jsPlumb determines an element is already draggabled it does not attach
> its own listeners (because it can't). Removing that makes your code
> work, but I also had to take out the 'container' arguments: container
> is for telling jsPlumb what element will be the common parent across a
> number of endpoints, and is only required if your endpoints would not
> naturally end up with a common parent. with your setup all endpoints
> would be added as children of 'demo' so you do not need it.
>
> dragging was not actually working with your jsfiddle, it just looked
> like it was, because the endpoints on those elements were children of
> the element that was being dragged.
>
> try this:
>
>
http://jsfiddle.net/sporritt/vbC7V/3/
>
> Simon
>
>
>
>
>
>
>
>
>
> On Thu, Mar 1, 2012 at 7:05 AM, Saminda <
samin...@gmail.com> wrote:
> > I'm sure I'm missing something here. But I cant seem to find the
> > problem. in the followinghttp://
jsfiddle.net/vbC7V/when trying to