소스 검색

ComboBox. Fix build warnings.

Ross Ferguson 5 년 전
부모
커밋
d83ea59f15
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      Terminal.Gui/Views/ComboBox.cs

+ 3 - 3
Terminal.Gui/Views/ComboBox.cs

@@ -64,8 +64,8 @@ namespace Terminal.Gui {
 		ustring text = "";
 		TextField search;
 		ListView listview;
-		int x;
-		int y;
+		int x = 0;
+		int y = 0;
 		int height;
 		int width;
 		bool autoHide = true;
@@ -114,7 +114,7 @@ namespace Terminal.Gui {
 			LayoutComplete += (LayoutEventArgs a) => {
 
 				search.Width = Bounds.Width;
-				listview.Width = Bounds.Width - 1;
+				listview.Width = autoHide ? Bounds.Width - 1 : Bounds.Width;
 			};
 
 			listview.SelectedItemChanged += (ListViewItemEventArgs e) => {