From: jpbruyere Date: Thu, 1 Sep 2016 09:20:54 +0000 (+0200) Subject: debug splitter for stretched item (min max size check) X-Git-Tag: v0.5~7^2~1 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=ceb084273f019d737105a8d8fad5a071627f521c;p=jp%2Fcrow.git debug splitter for stretched item (min max size check) --- 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) ||