TableView: Fix incorrect row position for focus ring
While sorting the TableView the focus ring was in the incorrect spot. Upon investigation, the position was always the model_index instead of the view_index. Added a unit test to make sure that the active row index matches the view index being shown meanwhile the model index differs (which tells us it has been sorted). Previously this test will fail since the focus ring is being rendered in a different position. AX-Relnotes: A focus ring now appears around the correct cell in tables that are found in e.g. Chromium's Task Manager. Bug: 1121394 Change-Id: I6921268a7274d5f41eaec8de013e2ea90e3abdb1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2373236 Commit-Queue: Mohamed Mansour <mmansour@microsoft.com> Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Peter Boström <pbos@chromium.org> Reviewed-by:
Nektarios Paisios <nektar@chromium.org> Cr-Commit-Position: refs/heads/master@{#802364}
Showing
Please register or sign in to comment