Reduced duplicate calls to AdjustLocation
This commit is contained in:
parent
211e8b086c
commit
5b318cf7a4
@ -896,7 +896,8 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
_Moving = false;
|
_Moving = false;
|
||||||
BottomMostStepItem.AdjustLocation();
|
StepItem btm = BottomMostStepItem;
|
||||||
|
if(this != btm)btm.AdjustLocation();
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Handle the LinkGoTO event
|
/// Handle the LinkGoTO event
|
||||||
@ -1177,6 +1178,9 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
StepItem tmp = NextDownStepItem;
|
StepItem tmp = NextDownStepItem;
|
||||||
if (tmp == null) return;
|
if (tmp == null) return;
|
||||||
|
// Debug to show when this is called
|
||||||
|
// vlnStackTrace.ShowStack("{0} From {1} to {2}", tmp.MyPath, tmp.Top, Bottom);
|
||||||
|
// Console.WriteLine("{0} From {1} to {2}", tmp.MyPath, tmp.Top, Bottom);
|
||||||
if (tmp != null && !tmp.Moving && tmp.Top != Bottom)
|
if (tmp != null && !tmp.Moving && tmp.Top != Bottom)
|
||||||
{
|
{
|
||||||
_MyStepPanel.ItemMoving++;
|
_MyStepPanel.ItemMoving++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user