Child node are a little bit more distant from parent in the OldLayout.

This commit is contained in:
Paulo Gustavo Veiga 2011-04-26 00:53:46 -03:00
parent fa726742a4
commit a2b0838200
3 changed files with 5 additions and 5 deletions

View File

@ -58,11 +58,11 @@ mindplot.DragPivot.prototype._redraw = function(pivotPosition)
core.assert(this.getTargetTopic(), 'Illegal invocation. Target node can not be null');
var pivotRect = this._getPivotRect();
var currentPivotPositon = pivotRect.getPosition();
var currentPivotPosition = pivotRect.getPosition();
// Pivot position has not changed. In this case, position change is not required.
var targetTopic = this.getTargetTopic();
if (currentPivotPositon.x != pivotPosition.x || currentPivotPositon.y != pivotPosition.y)
if (currentPivotPosition.x != pivotPosition.x || currentPivotPosition.y != pivotPosition.y)
{
var position = this._position;
var fromPoint = targetTopic.workoutIncomingConnectionPoint(position);
@ -80,7 +80,7 @@ mindplot.DragPivot.prototype._redraw = function(pivotPosition)
// Update rect position
pivotRect.setPosition(pivotPosition.x, pivotPosition.y);
// Display elements if it's requiered...
// Display elements if it's required...
if (!pivotRect.isVisible())
{
// Make line visible only when the position has been already changed.

View File

@ -175,7 +175,7 @@ mindplot.DragTopic.prototype.updateDraggedTopic = function(workspace)
// Update topic position ...
var dragPivotPosition = dragPivot.getPosition();
// Must positionate the dragged topic taking into account the current node size.
// Must position the dragged topic taking into account the current node size.
var pivotSize = dragPivot.getSize();
var draggedTopicSize = draggedTopic.getSize();
var xOffset = draggedTopicSize.width - pivotSize.width;

View File

@ -98,7 +98,7 @@ mindplot.FixedDistanceBoard.prototype.updateReferencePoint = function()
};
mindplot.FixedDistanceBoard.MAIN_TOPIC_TO_MAIN_TOPIC_DISTANCE = 30;
mindplot.FixedDistanceBoard.MAIN_TOPIC_TO_MAIN_TOPIC_DISTANCE = 60;
/**