Skip to content

fix: Menu items display off the page in FluentMenu #4870

@JamesNK

Description

@JamesNK

🐛 Bug Report

A submenu with a lot of items is displayed off the page:

Image

💻 Repro or Code Sample

🤔 Expected Behavior

I would expect the opened menu to be positioned so that it doesn't go off the page. Photoshopped example:

Image

I see this behavior at https://storybooks.fluentui.dev/react/?path=/docs/components-menu-menu--docs#nested-submenus when expanding a submenu near the edge of the page:

Image

😯 Current Behavior

See above

💁 Possible Solution

Don't always open a submenu at the exact parent item position. Shift it so that it fits within the page.

🔦 Context

🌍 Your Environment

  • OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
  • Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
  • .NET and Fluent UI Blazor library Version [e.g. 8.0.2 and 4.4.1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions