Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

[MDC-Menu and MDC-DataTable] Screen resizing problem with setFixedPosition #7759

Closed
@Kepron

Description

Bug report

There is a settings button for each row in the table. The menu works properly under normal conditions. But if the page resizes, the menu won't stick to the anchor. This problem has only been seen when the menu is positioned with setFixedPosition. If setFixedPosition is not used, the menu is not positioned outside the table.

Steps to reproduce

  1. Go to the page with the table.
  2. Click the 'settings' button of any row.
  3. Resize the page. (Like resizing the Chrome window.)
  4. You can see that the menu is not stick to the button.

https://codepen.io/lastofdead/pen/LYmddNN
https://imgur.com/a/BuJQtZE

Actual behavior

The menu doesn't stick to the button when the window is resized.

Expected behavior

The dropdown should stick to the button.

Screenshots

https://imgur.com/a/BuJQtZE

Your Environment:

Software Version(s)
MDC Web v14
Browser Chrome Version 105.0.5195.128
Operating System Windows 10 64Bit

Metadata

Assignees

No one assigned

    Labels

    Unresolved (Archived)Open and unresolved issues and PRs that were closed due to archiving the repository.bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions