From d8ed06f2e940b0019c71f5f83ea0d34e09efe756 Mon Sep 17 00:00:00 2001 From: BDisp Date: Wed, 12 Aug 2020 19:17:41 +0100 Subject: [PATCH] Fixes #862. Issue was in the Text property of the View class. --- Terminal.Gui/Core/View.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/Core/View.cs b/Terminal.Gui/Core/View.cs index 523c2675d..05b5f9732 100644 --- a/Terminal.Gui/Core/View.cs +++ b/Terminal.Gui/Core/View.cs @@ -1843,7 +1843,7 @@ namespace Terminal.Gui { get => textFormatter.Text; set { textFormatter.Text = value; - if (textFormatter.Size != Bounds.Size && (width == null || Bounds.Width == 0 || height == null || Bounds.Height == 0)) { + if (textFormatter.Size != Bounds.Size && (width == null && Bounds.Width == 0) || (height == null && Bounds.Height == 0)) { Bounds = new Rect (Bounds.X, Bounds.Y, textFormatter.Size.Width, textFormatter.Size.Height); } SetNeedsDisplay ();