B2023-025: AER Ro table displays too far to left

This commit is contained in:
Kathy Ruffing 2024-04-18 08:36:51 -04:00
parent 811076d432
commit dffea37fad

View File

@ -2185,6 +2185,9 @@ namespace Volian.Controls.Library
// B2017-043 account for Horizontal Scroll
int colT = MyStepPanel.DisplayRectangle.X + MyStepPanel.ToDisplay((int)myStepSectionLayoutData.ColT);
if (x < colT) x = colT;
// B2023-025: if x is <= 0, add 20 to it so that left column of table isn't cut-off. 20 was used because lesser numbers
// still cut-off the left column (by trial and error).
if (x <= 0) x = 20;
int y = FindTop(myParentEditItem.Bottom);
return new Point(x, y);
}