1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Bug 2648: Grid accessibility: location can be incorrect.

The focus location provided to assistive technology by GridAx::GetLocation() does not take into account horizontal or vertical scrolling. So if there is any scrolling in either the Metadata or Labels editor, the focus location provided to assistive technology is not the same as the focus location shown by wxWidgets.
This commit is contained in:
David Bailes 2021-01-29 16:21:34 +00:00
parent 9fee0d1c19
commit 6c44b4fdc0

View File

@ -933,6 +933,7 @@ wxAccStatus GridAx::GetLocation(wxRect & rect, int elementId)
if (GetRowCol(elementId, row, col)) {
rect = mGrid->CellToRect(row, col);
rect.SetPosition(mGrid->CalcScrolledPosition(rect.GetPosition()));
rect.SetPosition(mGrid->GetGridWindow()->ClientToScreen(rect.GetPosition()));
}
else {