Browse Source

Merge pull request #1090 from AvaloniaUI/fixes/1089-linenode-bounds

Fixed LineNode.Bounds calculation
pull/1095/head
Steven Kirk 9 years ago
committed by GitHub
parent
commit
642c050b36
  1. 2
      src/Avalonia.Visuals/Rendering/SceneGraph/LineNode.cs

2
src/Avalonia.Visuals/Rendering/SceneGraph/LineNode.cs

@ -29,7 +29,7 @@ namespace Avalonia.Rendering.SceneGraph
Point p2,
IDictionary<IVisual, Scene> childScenes = null)
{
Bounds = new Rect(P1, P2);
Bounds = new Rect(p1, p2).TransformToAABB(transform).Inflate(pen?.Thickness ?? 0);
Transform = transform;
Pen = pen?.ToImmutable();
P1 = p1;

Loading…
Cancel
Save