Skip to content

SelectPanel not scrolling with anchoring element #2184

@reneexeener

Description

@reneexeener

Describe the bug
SelectPanel not scrolling with anchoring element when parent containers have different overflow properties. This also happens with ActionMenu.

To Reproduce
In memex list view:

  1. Go to an existing memex project (list view)
  2. Click on any downward carets to open the SelectPanel
  3. Start scrolling the table
  4. SelectPanel does not scroll with the anchoring element that is the table cell

In bulk add side panel:

  1. Go to an existing memex project and click on the + icon in the omnibar at the bottom of the page
  2. Click on the repository selector to open the SelectPanel
  3. Start scrolling the table
  4. SelectPanel does not scroll with the repository selector button

In Project settings (implements ActionMenu):

  1. Make sure you have admin permissions and go to an existing project
  2. Click on the three dots on the top right corner -> Settings -> go to bottom of the page
  3. Click on the button next to 'Visibility'
  4. Start scrolling the page
  5. ActionMenu does not scroll with the button

Expected behavior
SelectPanel and ActionMenu should scroll correctly with their anchoring elements.

Screenshots
selectpanel

Desktop (please complete the following information):

  • OS: macOS Montery 12.4
  • Browser: Chrome
  • Version 103.0.5060.114

Additional context
After doing some deductions with @siddharthkp, we suspect that the scrolling problem is caused by wrapping SelectPanel or ActionMenu in nested containers with different overflow properties, which causes the getClippingRect function to find the wrong parent node (code).

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions