diff --git a/Yafc.UI/Core/Window.cs b/Yafc.UI/Core/Window.cs index 6d4c1f7f..6b6cf9bf 100644 --- a/Yafc.UI/Core/Window.cs +++ b/Yafc.UI/Core/Window.cs @@ -77,7 +77,10 @@ internal int CalculateUnitsToPixels(int display) { return desiredUnitsToPixels; } - internal virtual void WindowResize() => rootGui.Rebuild(); + internal virtual void WindowResize() { + rootGui.MarkEverythingForRebuild(); + rootGui.Rebuild(); + } internal void WindowMoved() { if (surface is null) { throw new InvalidOperationException($"surface must be set by a derived class before calling {nameof(WindowMoved)}."); }