]> O.S.I.I.S - jp/crow.git/commitdiff
debug splitter for stretched item (min max size check)
authorjpbruyere <jp.bruyere@hotmail.com>
Thu, 1 Sep 2016 09:20:54 +0000 (11:20 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Thu, 1 Sep 2016 10:44:39 +0000 (12:44 +0200)
src/GraphicObjects/Splitter.cs

index 12b9f7d5b7b782141c79bb01432133005326b6d4..220fc4768ecd24f8089c6cfab2d432ea9877fba4 100644 (file)
@@ -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) ||