Browse Source

NativeControlHost: fixed absolute bounds calculation

pull/5818/head
Nikita Tsukanov 6 years ago
parent
commit
ccfcf0e343
  1. 2
      src/Avalonia.Controls/NativeControlHost.cs

2
src/Avalonia.Controls/NativeControlHost.cs

@ -120,7 +120,7 @@ namespace Avalonia.Controls
private Rect? GetAbsoluteBounds() private Rect? GetAbsoluteBounds()
{ {
var bounds = Bounds; var bounds = Bounds;
var position = this.TranslatePoint(bounds.Position, _currentRoot); var position = this.TranslatePoint(default, _currentRoot);
if (position == null) if (position == null)
return null; return null;
return new Rect(position.Value, bounds.Size); return new Rect(position.Value, bounds.Size);

Loading…
Cancel
Save