From 03c3a906e0c7c36a69e92da255ec860cac88ab63 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sat, 29 Nov 2014 15:50:42 +0100 Subject: [PATCH] ...aaannd again. --- Perspex.Controls/Primitives/Track.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Perspex.Controls/Primitives/Track.cs b/Perspex.Controls/Primitives/Track.cs index 5ee6eda8aa..f3c223c2f8 100644 --- a/Perspex.Controls/Primitives/Track.cs +++ b/Perspex.Controls/Primitives/Track.cs @@ -128,13 +128,13 @@ namespace Perspex.Controls.Primitives if (this.Orientation == Orientation.Horizontal) { - var width = finalSize.Width * thumbFraction; + var width = Math.Max(finalSize.Width * thumbFraction, thumb.MinWidth); var x = (finalSize.Width - width) * valueFraction; thumb.Arrange(new Rect(x, 0, width, finalSize.Height)); } else { - var height = finalSize.Height * thumbFraction; + var height = Math.Max(finalSize.Height * thumbFraction, thumb.MinHeight); var y = (finalSize.Height - height) * valueFraction; thumb.Arrange(new Rect(0, y, finalSize.Width, height)); }