From 7618438ee0ed7e267c8cbb6ac18548eceed162c4 Mon Sep 17 00:00:00 2001 From: Tig Kindel Date: Sun, 7 Jan 2024 20:42:20 -0700 Subject: [PATCH] Fixed OnResizeNeeded bug --- Terminal.Gui/View/Layout/ViewLayout.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/View/Layout/ViewLayout.cs b/Terminal.Gui/View/Layout/ViewLayout.cs index 125dfbc53..767946064 100644 --- a/Terminal.Gui/View/Layout/ViewLayout.cs +++ b/Terminal.Gui/View/Layout/ViewLayout.cs @@ -616,7 +616,7 @@ public partial class View { // First try SuperView.Bounds, then Application.Current.Bounds, then Application.Top, then Driver // Finally, if none of those are valid, use int.MaxValue (for Unit tests). - SetRelativeLayout (SuperView?.Bounds ?? Application.Current?.Bounds ?? Application.Top?.Bounds ?? Application.Driver?.Bounds ?? new Rect (0, 0, int.MaxValue, int.MaxValue)); + SetRelativeLayout (SuperView?.Bounds ?? Application.Top?.Bounds ?? Application.Driver?.Bounds ?? new Rect (0, 0, int.MaxValue, int.MaxValue)); // TODO: Determine what, if any of the below is actually needed here. if (IsInitialized/* || LayoutStyle == LayoutStyle.Absolute*/) {