浏览代码

Correct width/height

Ross Ferguson 5 年之前
父节点
当前提交
0f4ddf44c5
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Terminal.Gui/Views/ComboBox.cs

+ 2 - 1
Terminal.Gui/Views/ComboBox.cs

@@ -128,7 +128,8 @@ namespace Terminal.Gui {
 			LayoutComplete += (LayoutEventArgs a) => {
 			LayoutComplete += (LayoutEventArgs a) => {
 				if (!autoHide && search.Frame.Width != Bounds.Width ||
 				if (!autoHide && search.Frame.Width != Bounds.Width ||
 					autoHide && search.Frame.Width != Bounds.Width - 1) {
 					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 ();
 					listview.Height = CalculatetHeight ();
 					search.SetRelativeLayout (Bounds);
 					search.SetRelativeLayout (Bounds);
 					listview.SetRelativeLayout (Bounds);
 					listview.SetRelativeLayout (Bounds);