You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Platform adapters ignore row_count / row_index (virtualized lists and tables can't announce their size) #871
accesskit lets a provider set row_count, row_index (and column_count/column_index) on tables, grids and lists, which is what a virtualized list needs: only the visible rows are in the tree, so the size and position can't be derived by counting children. As far as I can tell no platform adapter reads them yet:
macOS (adapters/macos/src/node.rs): accessibilityRows returns the children that are present; there is no accessibilityRowCount / accessibilityIndex (AXRowCount, AXIndex), so VoiceOver can't say "row 412,000 of 1,000,000".
Windows (adapters/windows/src/node.rs): only row_index_text is used; there's no IGridProvider / IGridItemProvider / ITableProvider (RowCount, Row), and no IItemContainerProvider / IVirtualizedItemProvider for virtualized items.
Unix / AT-SPI: no Table / TableCell interface mapping of these fields.
Related: #10 (computed table information in accesskit_consumer) covers deriving the values when the provider doesn't give them; this issue is about exposing the provided values to each platform.
How we hit it: a GUI toolkit with a virtual list of up to 10 million rows sets row_count, row_index, size_of_set and position_in_set on the list and its built rows. An external check through the macOS AX API sees the rows but no row count or index on them.
Would a PR adding AXRowCount/AXIndex on macOS (and the UIA grid/table patterns on Windows) be welcome? Happy to help.
Activity