Skip to content

Commit

Permalink
Merge pull request #3704 from BDisp/v2_3702_dim-auto-layout-fix
Browse files Browse the repository at this point in the history
Fixes #3702. Manipulating Adornment doesn't always cause LayoutSubviews.
  • Loading branch information
tig authored Aug 31, 2024
2 parents 2f6ea90 + 2734067 commit 9251244
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Terminal.Gui/View/Layout/DimAuto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ internal override int Calculate (int location, int superviewContentSize, View us
.ToList ();
}

foreach (View notDependentSubView in notDependentSubViews)
{
notDependentSubView.SetRelativeLayout (us.GetContentSize ());
}

for (var i = 0; i < notDependentSubViews.Count; i++)
{
View v = notDependentSubViews [i];
Expand Down

0 comments on commit 9251244

Please sign in to comment.