From 03120b93fb496acae8e84ab30f0304bfcb0137a8 Mon Sep 17 00:00:00 2001 From: BDisp Date: Mon, 28 Jul 2025 13:19:27 +0100 Subject: [PATCH] Add assertion proving NeedsLayout is always false before call OnSubViewsLaidOut --- Terminal.Gui/ViewBase/View.Layout.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/ViewBase/View.Layout.cs b/Terminal.Gui/ViewBase/View.Layout.cs index a551ee2ec..16725ebfd 100644 --- a/Terminal.Gui/ViewBase/View.Layout.cs +++ b/Terminal.Gui/ViewBase/View.Layout.cs @@ -703,7 +703,7 @@ public partial class View // Layout APIs /// Override to perform tasks after the has been resized or the layout has /// otherwise changed. /// - protected virtual void OnSubViewsLaidOut (LayoutEventArgs args) { } + protected virtual void OnSubViewsLaidOut (LayoutEventArgs args) { Debug.Assert (!NeedsLayout); } /// Raised after all sub-views have been laid out. ///