浏览代码

Make sure view is at front when shown

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

+ 2 - 0
Terminal.Gui/Views/TextFieldAutoComplete.cs

@@ -194,7 +194,9 @@ namespace Terminal.Gui {
 
 			listview.SetSource (searchset.ToList ());
 			listview.Height = CalculatetHeight ();
+
 			listview.Redraw (new Rect (0, 0, width, height)); // for any view behind this
+			this.SuperView?.BringSubviewToFront (this);
 		}
 
 		/// <summary>