mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
move the pos init to constructor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user