Browse Source

Resize windows on Unix

miguel 7 năm trước cách đây
mục cha
commit
317250c743
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      Terminal.Gui/Core.cs

+ 5 - 1
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 ();
 		}
 	}
 }