mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-28 16:58:01 +01:00
LineView uses DimAuto
This commit is contained in:
@@ -14,14 +14,14 @@ public class LineView : View
|
||||
switch (orientation)
|
||||
{
|
||||
case Orientation.Horizontal:
|
||||
Height = 1; // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize
|
||||
Height = Dim.Auto (minimumContentDim: 1);
|
||||
Width = Dim.Fill ();
|
||||
LineRune = Glyphs.HLine;
|
||||
|
||||
break;
|
||||
case Orientation.Vertical:
|
||||
Height = Dim.Fill ();
|
||||
Width = 1; // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize
|
||||
Width = Dim.Auto (minimumContentDim: 1);
|
||||
LineRune = Glyphs.VLine;
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user