Browse Source

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

pull/19817/head
Emmanuel Hansen 4 months ago
committed by GitHub
parent
commit
5581fde271
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Avalonia.Controls/TopLevel.cs

2
src/Avalonia.Controls/TopLevel.cs

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

Loading…
Cancel
Save