Преглед изворни кода

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

Emmanuel Hansen пре 1 недеља
родитељ
комит
5581fde271
1 измењених фајлова са 2 додато и 0 уклоњено
  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)