move the pos init to constructor

This commit is contained in:
Charlie Kindel
2020-06-06 09:35:01 -06:00
parent ba0fb43156
commit 6cac4e5d46

View File

@@ -285,8 +285,8 @@ namespace Terminal.Gui {
}
}
Pos x = Pos.At (0);
Pos y = Pos.At (0);
Pos x, y;
/// <summary>
/// Gets or sets the X position for the view (the column). Only used whe <see cref="LayoutStyle"/> is <see cref="LayoutStyle.Computed"/>.
/// </summary>
@@ -383,6 +383,8 @@ namespace Terminal.Gui {
{
CanFocus = false;
LayoutStyle = LayoutStyle.Computed;
x = Pos.At (0);
y = Pos.At (0);
Height = 0;
Width = 0;
}