Browse Source

started impl on min/max.

Tig Kindel 1 year ago
parent
commit
e249a8494b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Terminal.Gui/View/ViewLayout.cs

+ 3 - 2
Terminal.Gui/View/ViewLayout.cs

@@ -790,8 +790,9 @@ namespace Terminal.Gui {
 						newDimension = furthestRight + thickness.Left + thickness.Right;
 					} else {
 						var furthestBottom = Subviews.Count == 0 ? 0 : Subviews.Max (v => v.Frame.Y + v.Frame.Height);
-						// TODO: GethashCode is ah ack. 
-						newDimension = int.Max(furthestBottom + thickness.Top + thickness.Bottom, ((Dim.DimAuto)d)._min.GetHashCode());
+						// TODO: GethashCode is a hack. 
+						//newDimension = int.Max(furthestBottom + thickness.Top + thickness.Bottom, ((Dim.DimAuto)d)._min.GetHashCode());
+						newDimension = furthestBottom + thickness.Top + thickness.Bottom;
 					}
 					break;