Hareeshchandera / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

Dynamic anchors get confused by scroll offset #120

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Sorry, found another one ;)

Please see http://jsfiddle.net/XX4NY/ . To reproduce:

- scroll down within the container div a bit
- drag 'B'; the endpoint/anchor a 'A' will come off

This only happens when using dynamic anchors; if you remove the 
'dynamicAnchors' declarations when creating the endpoints, everything will 
behave as expected.

Original issue reported on code.google.com by paul.uit...@gmail.com on 11 Aug 2011 at 12:17

GoogleCodeExporter commented 8 years ago
it's very nice of you to apologise for finding bugs ;)

Original comment by simon.po...@gmail.com on 12 Aug 2011 at 11:38

GoogleCodeExporter commented 8 years ago
just took a look at this: jsPlumb has cached the location of 'A' and the 
dynamic anchor doesn't realise it needs to be recomputed.  targeting 1.3.3.

Original comment by simon.po...@gmail.com on 31 Aug 2011 at 11:50

GoogleCodeExporter commented 8 years ago
ok fixed:

http://jsfiddle.net/sporritt/WxJRQ/1/

(that uses an interim build of 1.3.3 i'm hosting on my site)

this will be in version 1.3.3; i intend to release that later today.

Original comment by simon.po...@gmail.com on 1 Sep 2011 at 12:04

GoogleCodeExporter commented 8 years ago
1.3.3 was released today. closing this out.

Original comment by simon.po...@gmail.com on 1 Sep 2011 at 3:23