Browse Source
Merge pull request #4120 from MarchingCube/fix-reversed-horizontal-track
Fix typo in Track that was breaking layout for inverse horizontal tracks
pull/4124/head
danwalmsley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Controls/Primitives/Track.cs
|
|
@ -259,7 +259,7 @@ namespace Avalonia.Controls.Primitives |
|
|
CoerceLength(ref increaseButtonLength, arrangeSize.Width); |
|
|
CoerceLength(ref increaseButtonLength, arrangeSize.Width); |
|
|
CoerceLength(ref thumbLength, arrangeSize.Width); |
|
|
CoerceLength(ref thumbLength, arrangeSize.Width); |
|
|
|
|
|
|
|
|
offset = offset.WithY(isDirectionReversed ? increaseButtonLength + thumbLength : 0.0); |
|
|
offset = offset.WithX(isDirectionReversed ? increaseButtonLength + thumbLength : 0.0); |
|
|
pieceSize = pieceSize.WithWidth(decreaseButtonLength); |
|
|
pieceSize = pieceSize.WithWidth(decreaseButtonLength); |
|
|
|
|
|
|
|
|
if (DecreaseButton != null) |
|
|
if (DecreaseButton != null) |
|
|
|