Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5548

Grid on M.6-UI doesn't scroll to selected item if its outside the visible range

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Neutral
    • None
    • 6.0, 6.1, 6.2
    • None
    • (ce) test-webapp; 6.2-Snapshot; 2019.11.06 14:15:03

    Description

      Grid on M.6-UI doesn't scroll to selected item if its outside the visible range

      Examples:

      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).

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                cmeier Christoph Meier
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD