mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Add assertion proving NeedsLayout is always false before call OnSubViewsLaidOut
This commit is contained in:
@@ -703,7 +703,7 @@ public partial class View // Layout APIs
|
||||
/// Override to perform tasks after the <see cref="View"/> has been resized or the layout has
|
||||
/// otherwise changed.
|
||||
/// </remarks>
|
||||
protected virtual void OnSubViewsLaidOut (LayoutEventArgs args) { }
|
||||
protected virtual void OnSubViewsLaidOut (LayoutEventArgs args) { Debug.Assert (!NeedsLayout); }
|
||||
|
||||
/// <summary>Raised after all sub-views have been laid out.</summary>
|
||||
/// <remarks>
|
||||
|
||||
Reference in New Issue
Block a user