From 317250c743b22bfa411dfe0c6674038086d7c6dc Mon Sep 17 00:00:00 2001 From: miguel Date: Wed, 2 May 2018 22:40:21 -0400 Subject: [PATCH] Resize windows on Unix --- Terminal.Gui/Core.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Terminal.Gui/Core.cs b/Terminal.Gui/Core.cs index 9f0fa1f39..6d0c5d109 100644 --- a/Terminal.Gui/Core.cs +++ b/Terminal.Gui/Core.cs @@ -1905,9 +1905,13 @@ namespace Terminal.Gui { static void TerminalResized () { + var full = new Rect (0, 0, Driver.Cols, Driver.Rows); + Driver.Clip = full; foreach (var t in toplevels) { - t.Frame = new Rect (0, 0, Driver.Cols, Driver.Rows); + t.RelativeLayout (full); + t.LayoutSubviews (); } + Refresh (); } } }