From b37683870f5f8ce799b14c82b1e7609ba68931f1 Mon Sep 17 00:00:00 2001 From: Andrei Zavatski Date: Fri, 16 Feb 2024 23:48:48 +0300 Subject: [PATCH] Invalidate GridContainer only on DrawSize change --- osu.Framework/Graphics/Containers/GridContainer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Framework/Graphics/Containers/GridContainer.cs b/osu.Framework/Graphics/Containers/GridContainer.cs index 00fa5c64bd..5a49f43d10 100644 --- a/osu.Framework/Graphics/Containers/GridContainer.cs +++ b/osu.Framework/Graphics/Containers/GridContainer.cs @@ -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];