aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/GraphicObjects/Splitter.cs16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/GraphicObjects/Splitter.cs b/src/GraphicObjects/Splitter.cs
index 59a70d25..84e1ade0 100644
--- a/src/GraphicObjects/Splitter.cs
+++ b/src/GraphicObjects/Splitter.cs
@@ -43,7 +43,7 @@ namespace Crow
int thickness;
- [XmlAttributeAttribute][DefaultValue(3)]
+ [XmlAttributeAttribute][DefaultValue(1)]
public virtual int Thickness {
get { return thickness; }
set {
@@ -217,6 +217,20 @@ namespace Crow
}
return base.UpdateLayout (layoutType);
}
+ public override bool PointIsIn (ref Point m)
+ {
+ if (!(Visible & IsEnabled)||IsDragged)
+ return false;
+ if (!Parent.PointIsIn(ref m))
+ return false;
+ m -= (Parent.getSlot().Position + Parent.ClientRectangle.Position) ;
+ Rectangle r = Slot;
+ if (Width == Measure.Stretched)
+ r.Inflate (0, 5);
+ else
+ r.Inflate (5, 0);
+ return r.ContainsOrIsEqual (m);
+ }
#endregion
}
}