Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-8127

Investigate weird scroll sizing issue when using a common virtual list for rendering for list view and json view

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: CRUD, Tech debt
    • None
    • 3
    • Not Needed
    • Developer Tools

      While implementing a component called VirtualList to encapsulate the rendering and resize observer logic, I came across the scroll sizing problems where the scroll bar would always assume more items then there actually are and hence be very small in size. Eventually upon scrolling the size resets but that produces a very sluggish interaction when scrolling.

      The possible problems that I looked at were memoized render props not getting updated or estimates sizes being totally off but none of them were the issues here. I or someone will have to spend some more time understanding why that is the case so that we can unify the duplicate list into one common component.

      The WIP can be found in the attached branch here.

            Assignee:
            Unassigned Unassigned
            Reporter:
            himanshu.singh@mongodb.com Himanshu Singh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: