Drag pivot is not displayed when a node is clicked. Only when the first drag start.

This commit is contained in:
Paulo Veiga
2012-01-19 02:36:46 -03:00
parent c6fa09ec7d
commit db74c63943
6 changed files with 56 additions and 42 deletions

View File

@@ -67,6 +67,16 @@ mindplot.DragTopic = new Class({
}
},
setVisibility:function(value) {
var dragPivot = this._getDragPivot();
dragPivot.setVisibility(value);
},
isVisible:function() {
var dragPivot = this._getDragPivot();
return dragPivot.isVisible();
},
getInnerShape : function() {
return this._elem2d;
},
@@ -110,6 +120,7 @@ mindplot.DragTopic = new Class({
var dragPivot = this._getDragPivot();
var position = predict.position;
dragPivot.connectTo(parent, position);
dragPivot.setVisibility(true);
this.setOrder(predict.order);
},