Przeglądaj źródła

Corrects the position of the StatusBar so that it is always at the bottom of the screen. Works perfectly with curses.

BDisp 5 lat temu
rodzic
commit
f4478661ea
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      Terminal.Gui/Core.cs

+ 2 - 2
Terminal.Gui/Core.cs

@@ -1643,8 +1643,8 @@ namespace Terminal.Gui {
 			nx = Math.Max (x, 0);
 			nx = nx + top.Frame.Width > Driver.Cols ? Math.Max (Driver.Cols - top.Frame.Width, 0) : nx;
 			bool m, s;
-			if (SuperView == null || SuperView.GetType() != typeof(Toplevel))
-				m = Application.Top.HasMenuBar;
+			if (SuperView == null)
+				m = Application.Top.MenuBar != null;
 			else
 				m = ((Toplevel)SuperView).MenuBar != null;
 			int l = m ? 1 : 0;