mui / mui/material-ui

Menu component jumps on window resize

Open
#33,271 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component: Popover scope: popup type: new feature
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Duplicates
  • I have searched the existing issues
Latest version
  • I have tested the latest version
Summary 💡

How it could work Open menu could smoothly change its position on window resize like every other component + it could stick to its parent not only horizontally, but also vertically
How it works now It snaps into a new horizontal position once resizing is paused, and it's no longer attached to its parent

Examples 🌈

ezgif com-gif-maker (28)

Motivation 🔦

Resizing window from wide to narrow view can result in the menu button to move out from the view, but the open dialog does not smoothly moves with the menu. Instead it snaps into its new horizontal position, it remains in the view even though its parent is no longer visible

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by locating the menu component's positioning and window-resize handling, then reproduce the behavior shown in the attached GIF while resizing from wide to narrow. Done means the open menu moves smoothly with its parent and remains vertically and horizontally attached as the parent leaves the viewport.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.