소스 검색

ComboBox. Use Clear() instead of Redraw()

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

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

@@ -380,8 +380,8 @@ namespace Terminal.Gui {
 		private void ShowList ()
 		{
 			listview.SetSource (searchset);
+			listview.Clear (); // Ensure list shrinks in Dialog as you type
 			listview.Height = CalculatetHeight ();
-			listview.Redraw (new Rect (0, 0, Bounds.Width, Bounds.Height)); // Ensure list shrinks in Dialog
 			this.SuperView?.BringSubviewToFront (this);
 		}