From 0f4ddf44c58c876fd62fdd2191ea698728e4a18e Mon Sep 17 00:00:00 2001 From: Ross Ferguson Date: Tue, 30 Jun 2020 09:06:36 +0100 Subject: [PATCH] Correct width/height --- Terminal.Gui/Views/ComboBox.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Terminal.Gui/Views/ComboBox.cs b/Terminal.Gui/Views/ComboBox.cs index 2ed8f83e7..5dc91e829 100644 --- a/Terminal.Gui/Views/ComboBox.cs +++ b/Terminal.Gui/Views/ComboBox.cs @@ -128,7 +128,8 @@ namespace Terminal.Gui { LayoutComplete += (LayoutEventArgs a) => { if (!autoHide && search.Frame.Width != Bounds.Width || autoHide && search.Frame.Width != Bounds.Width - 1) { - search.Width = listview.Width = autoHide ? Bounds.Width - 1 : Bounds.Width; + search.Width = Bounds.Width; + listview.Width = listview.Width = autoHide ? Bounds.Width - 1 : Bounds.Width; listview.Height = CalculatetHeight (); search.SetRelativeLayout (Bounds); listview.SetRelativeLayout (Bounds);