-
Bug
-
Resolution: Duplicate
-
Neutral
-
None
-
6.0, 6.1, 6.2
-
None
-
(ce) test-webapp; 6.2-Snapshot; 2019.11.06 14:15:03
Grid on M.6-UI doesn't scroll to selected item if its outside the visible range
Examples:
- Search in find bar:
Kazam_screencast_00009.mp4
- From definitions to resources
vokoscreen-2019-12-04_12-41-21.mkv
Dev notes:
https://vaadin.com/forum/thread/15758435/vaadin-8-grid-scrollto-x-but-where-is-x
The only solution listed in the thread is to fetch all items to get the index of the selected item (not nice, but we do it to get size of the datasource anyway). This applies only to list views (but we still need to make sure list are always ordered by default to always get the same order)
In the TreeGrid though, #scrollTo is deprecated (without replacement), but still usable to some degree. The selected row computation seems possible, would be quite complex though (get the root items, if expanded get the size of children..and recursively till we reach the selected item).
- duplicates
-
MGNLUI-6242 Scroll to selected item does not work after search or deeplink request
- Closed