Browse Source

android - fix scaling of inset when app is launched (#19797)

Emmanuel Hansen 1 week ago
parent
commit
5581fde271
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Avalonia.Controls/TopLevel.cs

+ 2 - 0
src/Avalonia.Controls/TopLevel.cs

@@ -777,6 +777,8 @@ namespace Avalonia.Controls
             _scaling = ValidateScaling(scaling);
             LayoutHelper.InvalidateSelfAndChildrenMeasure(this);
             Dispatcher.UIThread.Send(_ => ScalingChanged?.Invoke(this, EventArgs.Empty));
+
+            InvalidateChildInsetsPadding();
         }
 
         private void HandleTransparencyLevelChanged(WindowTransparencyLevel transparencyLevel)