Browse Source

Merge pull request #4286 from FoggyFinder/relativePanelTypo

Fix typo & add missing attribute related to RelativePanel
pull/4289/head
danwalmsley 6 years ago
committed by GitHub
parent
commit
48f1c14ab8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/RelativePanel.AttachedProperties.cs
  2. 1
      tests/Avalonia.Controls.UnitTests/RelativePanelTests.cs

2
src/Avalonia.Controls/RelativePanel.AttachedProperties.cs

@ -33,7 +33,7 @@ namespace Avalonia.Controls
AlignVerticalCenterWithProperty.Changed.AddClassHandler<Layoutable>(OnAlignPropertiesChanged);
BelowProperty.Changed.AddClassHandler<Layoutable>(OnAlignPropertiesChanged);
LeftOfProperty.Changed.AddClassHandler<Layoutable>(OnAlignPropertiesChanged);
LeftOfProperty.Changed.AddClassHandler<Layoutable>(OnAlignPropertiesChanged);
RightOfProperty.Changed.AddClassHandler<Layoutable>(OnAlignPropertiesChanged);
}
/// <summary>

1
tests/Avalonia.Controls.UnitTests/RelativePanelTests.cs

@ -31,6 +31,7 @@ namespace Avalonia.Controls.UnitTests
Assert.Equal(new Rect(20, 0, 20, 20), target.Children[1].Bounds);
}
[Fact]
public void Lays_Out_1_Child_Below_the_other()
{
var rect1 = new Rectangle { Height = 20, Width = 20 };

Loading…
Cancel
Save