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:
parent
9fee0d1c19
commit
6c44b4fdc0
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user