Finally connection predict is working.

This commit is contained in:
Paulo Gustavo Veiga
2012-08-19 11:10:38 -03:00
parent eb709699b7
commit 9b2a24c437
2 changed files with 16 additions and 22 deletions

View File

@@ -49,7 +49,7 @@ mindplot.DragTopic = new Class({
// All topic element must be positioned based on the innerShape.
var draggedNode = this._draggedNode;
var size = draggedNode.getSize();
var cx = Math.ceil(position.x - (size.width / 2));
var cx = position.x - (position.x > 0 ? 0 : size.width);
var cy = Math.ceil(position.y - (size.height / 2));
this._elem2d.setPosition(cx, cy);