Merge pull request 'B2023-025: AER Ro table displays too far to left' (#301) from B2023-025 into Development

Ok to build test exe
This commit is contained in:
John Jenko 2024-04-18 08:42:37 -04:00
commit 5ffd99bd0e

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);
}