Procházet zdrojové kódy

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

Emmanuel Hansen před 1 týdnem
rodič
revize
5581fde271
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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)