From ceb084273f019d737105a8d8fad5a071627f521c Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Thu, 1 Sep 2016 11:20:54 +0200 Subject: [PATCH] debug splitter for stretched item (min max size check) --- src/GraphicObjects/Splitter.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GraphicObjects/Splitter.cs b/src/GraphicObjects/Splitter.cs index 12b9f7d5..220fc476 100644 --- a/src/GraphicObjects/Splitter.cs +++ b/src/GraphicObjects/Splitter.cs @@ -138,15 +138,15 @@ namespace Crow if (gs.Orientation == Orientation.Horizontal) { newDelta -= e.XDelta; if (size1 < 0) - size1 = go1.Slot.Width; + size1 = go1.Slot.Width + delta; if (size2 < 0) - size2 = go2.Slot.Width; + size2 = go2.Slot.Width - delta; } else { newDelta -= e.YDelta; if (size1 < 0) - size1 = go1.Slot.Height; + size1 = go1.Slot.Height + delta; if (size2 < 0) - size2 = go2.Slot.Height; + size2 = go2.Slot.Height - delta; } if (size1 - newDelta < min1 || (max1 > 0 && size1 - newDelta > max1) || -- 2.47.3