Ver Fonte

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

Emmanuel Hansen há 1 semana atrás
pai
commit
5581fde271
1 ficheiros alterados com 2 adições e 0 exclusões
  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)