From ccfcf0e343cc75624f35f8c7d78592b222ef5772 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Wed, 21 Apr 2021 11:10:16 +0300 Subject: [PATCH] NativeControlHost: fixed absolute bounds calculation --- src/Avalonia.Controls/NativeControlHost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/NativeControlHost.cs b/src/Avalonia.Controls/NativeControlHost.cs index c2fe1bb691..e18b7a5ba2 100644 --- a/src/Avalonia.Controls/NativeControlHost.cs +++ b/src/Avalonia.Controls/NativeControlHost.cs @@ -120,7 +120,7 @@ namespace Avalonia.Controls private Rect? GetAbsoluteBounds() { var bounds = Bounds; - var position = this.TranslatePoint(bounds.Position, _currentRoot); + var position = this.TranslatePoint(default, _currentRoot); if (position == null) return null; return new Rect(position.Value, bounds.Size);