Skip to content

Commit

Permalink
Revert note hight changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Astul-Betizagasti committed Jul 9, 2020
1 parent 91ac44d commit aceaffa
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/DynamoCore/Graph/Annotations/AnnotationModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,23 +302,9 @@ internal void UpdateBoundaryFromSelection()
X = regionX,
Y = regionY,
Width = xDistance + ExtendSize,
Height = yDistance + ExtendSize
Height = yDistance + ExtendSize + ExtendYHeight
};



//gets the element that reaches the lowest point inside the annotation
var lowestElement = groupModels.First();
foreach (var node in groupModels)
{
if (node.Y + node.Height > lowestElement.Y + lowestElement.Height)
lowestElement = node;
}

//If the last model is Node, then increase the height so that
//node border does not overlap with the group
if (lowestElement is NodeModel) region.Height += ExtendYHeight;

this.X = region.X;
this.Y = region.Y;
this.Width = Math.Max(region.Width, TextMaxWidth + ExtendSize);
Expand Down

0 comments on commit aceaffa

Please sign in to comment.