Skip to content

Commit

Permalink
Merge pull request ppy#6180 from EVAST9919/grid-alloc
Browse files Browse the repository at this point in the history
Invalidate `GridContainer` only on DrawSize change
  • Loading branch information
smoogipoo authored Feb 17, 2024
2 parents d1a15e4 + b376838 commit b89c970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Framework/Graphics/Containers/GridContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ protected override void Update()
}

private readonly Cached cellContent = new Cached();
private readonly LayoutValue cellLayout = new LayoutValue(Invalidation.DrawInfo | Invalidation.RequiredParentSizeToFit);
private readonly LayoutValue cellLayout = new LayoutValue(Invalidation.DrawSize);
private readonly LayoutValue cellChildLayout = new LayoutValue(Invalidation.RequiredParentSizeToFit | Invalidation.Presence, InvalidationSource.Child);

private CellContainer[,] cells = new CellContainer[0, 0];
Expand Down

0 comments on commit b89c970

Please sign in to comment.