Getting the library popup to be vertically scallable
This commit is contained in:
parent
52c88c08b8
commit
6ddf344187
5 changed files with 42 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue