B2016-040: after delete, steps disappear from edit screen.

This commit is contained in:
Kathy Ruffing 2016-02-26 15:06:12 +00:00
parent 865593a26b
commit debcc7db30

View File

@ -734,7 +734,14 @@ namespace Volian.Controls.Library
return;
}
//_MyTimer.ActiveProcess = "SetFocus";
newFocus.SetFocus();
int b4topadjust = newFocus.Top;
newFocus.SetFocus(); //shifts edititem to center it
// need to adjust the TopMostYBefore so that it accounts for any shifting that occurred when the
// SetFocus was called. This fixes B2016-040.
b4topadjust -= newFocus.Top;
TopMostYBefore -= b4topadjust;
//_MyTimer.ActiveProcess = "Dispose";
Dispose();
//_MyTimer.ActiveProcess = "SetAllTabs";