From 6cac4e5d465fbf86edd5aaf763b61a6b43bf2b1a Mon Sep 17 00:00:00 2001 From: Charlie Kindel Date: Sat, 6 Jun 2020 09:35:01 -0600 Subject: [PATCH] move the pos init to constructor --- Terminal.Gui/Core/View.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Terminal.Gui/Core/View.cs b/Terminal.Gui/Core/View.cs index 81420b490..796701168 100644 --- a/Terminal.Gui/Core/View.cs +++ b/Terminal.Gui/Core/View.cs @@ -285,8 +285,8 @@ namespace Terminal.Gui { } } - Pos x = Pos.At (0); - Pos y = Pos.At (0); + Pos x, y; + /// /// Gets or sets the X position for the view (the column). Only used whe is . /// @@ -383,6 +383,8 @@ namespace Terminal.Gui { { CanFocus = false; LayoutStyle = LayoutStyle.Computed; + x = Pos.At (0); + y = Pos.At (0); Height = 0; Width = 0; }