From b426e2e34465f01ed2db4e9b9ebf8810bd6ce126 Mon Sep 17 00:00:00 2001 From: Emmanuel Hansen Date: Sat, 11 Oct 2025 11:16:50 +0000 Subject: [PATCH] android - fix scaling of inset when app is launched (#19797) --- src/Avalonia.Controls/TopLevel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Avalonia.Controls/TopLevel.cs b/src/Avalonia.Controls/TopLevel.cs index 28449fa0b1..664035ad9f 100644 --- a/src/Avalonia.Controls/TopLevel.cs +++ b/src/Avalonia.Controls/TopLevel.cs @@ -776,6 +776,8 @@ namespace Avalonia.Controls _scaling = ValidateScaling(scaling); LayoutHelper.InvalidateSelfAndChildrenMeasure(this); Dispatcher.UIThread.Send(_ => ScalingChanged?.Invoke(this, EventArgs.Empty)); + + InvalidateChildInsetsPadding(); } private void HandleTransparencyLevelChanged(WindowTransparencyLevel transparencyLevel)