Sfoglia il codice sorgente

Make sure view is at front when shown

Ross Ferguson 5 anni fa
parent
commit
01c83e8983
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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>