Skip to content

fix: Scrollbars appear when opening FluentPopover near screen edge #2904

@JamesNK

Description

@JamesNK

🐛 Bug Report

See:

Image

Seems kind of similar to #2736

💻 Repro or Code Sample

Code here: dotnet/aspire#6607

The problem appeared when the button that the popover is anchored to moved near to the edge of the page.

🤔 Expected Behavior

No scroll bars added because popover content is inside browser window

😯 Current Behavior

Scroll bars added.

💁 Possible Solution

🔦 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

    triageNew issue. Needs to be looked at

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions