Getting the library popup to be vertically scallable

This commit is contained in:
Lars Brubaker 2018-10-16 16:23:25 -07:00
parent 52c88c08b8
commit 6ddf344187
5 changed files with 42 additions and 18 deletions

View file

@ -99,8 +99,8 @@ namespace MatterHackers.MatterControl.CustomWidgets
public override void OnMouseDown(MouseEventArgs mouseEvent)
{
if ((grabSide == GrabBarSide.Left && mouseEvent.Position.X < this.SplitterWidth)
|| (grabSide == GrabBarSide.Right && mouseEvent.Position.X > Width - this.SplitterWidth))
if ((grabSide == GrabBarSide.Left && mouseEvent.Position.X < LocalBounds.Left + this.SplitterWidth)
|| (grabSide == GrabBarSide.Right && mouseEvent.Position.X > LocalBounds.Right - this.SplitterWidth))
{
mouseDownOnBar = true;
mouseDownX = TransformToScreenSpace(mouseEvent.Position).X;