diff --git a/Terminal.Gui/ConsoleDrivers/NetDriver.cs b/Terminal.Gui/ConsoleDrivers/NetDriver.cs index 67fc40dd8..3cf2b1765 100644 --- a/Terminal.Gui/ConsoleDrivers/NetDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/NetDriver.cs @@ -183,7 +183,8 @@ namespace Terminal.Gui { return; } } else { - largestWindowHeight = Math.Max (Console.BufferHeight, largestWindowHeight); + //largestWindowHeight = Math.Max (Console.BufferHeight, largestWindowHeight); + largestWindowHeight = Console.BufferHeight; if (Console.BufferWidth != consoleDriver.Cols || largestWindowHeight != consoleDriver.Rows || Console.WindowHeight != lastWindowHeight) { lastWindowHeight = Console.WindowHeight; @@ -1094,7 +1095,8 @@ namespace Terminal.Gui { IsWinPlatform = true; NetWinConsole = new NetWinVTConsole (); } - largestWindowHeight = Math.Max (Console.BufferHeight, largestWindowHeight); + //largestWindowHeight = Math.Max (Console.BufferHeight, largestWindowHeight); + largestWindowHeight = Console.BufferHeight; if (IsWinPlatform) { Clipboard = new WindowsClipboard (); } else if (RuntimeInformation.IsOSPlatform (OSPlatform.OSX)) { @@ -1604,7 +1606,8 @@ namespace Terminal.Gui { Console.WindowHeight); top = 0; } else { - largestWindowHeight = Math.Max (Console.BufferHeight, largestWindowHeight); + //largestWindowHeight = Math.Max (Console.BufferHeight, largestWindowHeight); + largestWindowHeight = Console.BufferHeight; size = new Size (Console.BufferWidth, largestWindowHeight); } cols = size.Width;