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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Neutral 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:

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

        Acceptance criteria

          1. image-2019-12-04-12-34-14-335.png
            143 kB
            Martin Drápela
          2. image-2019-12-04-12-36-17-450.png
            43 kB
            Martin Drápela
          3. Kazam_screencast_00009.mp4
            1.13 MB
            Martin Drápela
          4. vokoscreen-2019-12-04_12-41-21.mkv
            297 kB
            Martin Drápela

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD