Closed GoogleCodeExporter closed 8 years ago
Btw, the comment in the jsfiddle still says "in combination with
repaintEverything", but that doesn't seem to be true. I just though that for a
minute because I was changing multiple parameters at the same time :\
Original comment by paul.uit...@gmail.com
on 30 Jan 2012 at 10:09
curious. for a few reasons!
i forked that fiddle:
http://jsfiddle.net/sporritt/7aRVg/1/
only Tab1 exhibits this behaviour. and if you make a connection from C to A
and then switch to Tab2 and back, you don't see the problem.
i'd like to get this into 1.3.5 too. i'll see if i have the time.
Original comment by simon.po...@gmail.com
on 31 Jan 2012 at 1:59
ok this is fixed too. when you initiate a drag, jsPlumb takes the endpoint
you're dragging from and clones it. the code that was cloning had a closure
scope bug; the arguments passed to the clone were being shared by everyone. so
after switching to tab 2 and then back, the args for the clone were pointing at
tab 2's endpoint.
the reason this caused an offset problem is that jsplumb looks for the
offsetParent values for each element it paints, and adjusts its location
accordingly. so the dragging endpoint on tab 1 was using tab 2 as its parent,
but because tab 2 was hidden, the browser was not reporting an offsetParent
value for the dragging endpoint.
i am releasing this as part of 1.3.5 later today.
Original comment by simon.po...@gmail.com
on 31 Jan 2012 at 11:42
1.3.5 was released today.
Original comment by simon.po...@gmail.com
on 1 Feb 2012 at 1:57
Original issue reported on code.google.com by
paul.uit...@gmail.com
on 30 Jan 2012 at 10:07