소스 검색

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) => {
 				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);