Franklinjagan / jsplumb

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

Straight line connectors - Arrows flip and disappear when the connector is vertical #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create three items
2. Using a straight line connector, connect item 2 to 1 and 2 to 3 
3. Move the items around until the lines are completely vertical.  The line 
from 2->1, the arrow will disappear.  The line from 2->3, the arrow will 
reverse direction.

What version of the product are you using? On what browser and OS?
1.2.6 RC | Chrome 10.x, Ubuntu

Please provide any additional information below.
See the attached screen shots.

Original issue reported on code.google.com by mastudeb...@gmail.com on 16 Apr 2011 at 12:32

Attachments:

GoogleCodeExporter commented 9 years ago
Not sure whether this is related: label is now shown and a Console error is 
generated when a straight line connector is vertical. I do not use arrows, but 
I do use a text label.
The Console log shows:

 An invalid or illegal string was specified" code: "12
 ctx.fillRect(minx, miny, td.width, td.height) );

(exactly like this, including weird spacing and punctuation).
I did some debugging, and the function mentioned in the Console log appears in 
the draw method of jsPlumb.Overlays.Label. The error occurs because miny is NaN 
at that point. I know too little of the code to attempt a fix.

I am using the 1.2.6RC1 version retrieved from SVN just now. This also happens 
with 1.2.5. 

Original comment by eel...@xs4all.nl on 6 May 2011 at 8:29