Browse Source

Fix typo in Track that was breaking layout for inverse horizontal tracks.

pull/4120/head
Dariusz Komosinski 6 years ago
parent
commit
0ac2468981
  1. 2
      src/Avalonia.Controls/Primitives/Track.cs

2
src/Avalonia.Controls/Primitives/Track.cs

@ -259,7 +259,7 @@ namespace Avalonia.Controls.Primitives
CoerceLength(ref increaseButtonLength, 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);
if (DecreaseButton != null)

Loading…
Cancel
Save