mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Resize windows on Unix
This commit is contained in:
@@ -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 ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user