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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
1 deletions
-
src/Avalonia.Controls/RelativePanel.AttachedProperties.cs
-
tests/Avalonia.Controls.UnitTests/RelativePanelTests.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>
|
|
|
|
|
|
|
|
@ -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 }; |
|
|
|
|