From aceaffa03b63ef36c3a0227e6b8854f526dc60f8 Mon Sep 17 00:00:00 2001 From: Astul Betizagasti Date: Thu, 9 Jul 2020 15:40:19 -0300 Subject: [PATCH] Revert note hight changes --- .../Graph/Annotations/AnnotationModel.cs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/DynamoCore/Graph/Annotations/AnnotationModel.cs b/src/DynamoCore/Graph/Annotations/AnnotationModel.cs index 09a8591b6f1..1febdd9cb29 100644 --- a/src/DynamoCore/Graph/Annotations/AnnotationModel.cs +++ b/src/DynamoCore/Graph/Annotations/AnnotationModel.cs @@ -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);