Skip to content

AIMenuController missing @floating-ui/react positioning #2245

Closed

Description

@VihangaN

Problem

AIMenuController does not use @floating-ui/react for positioning. As a result, the menu does not automatically flip or adjust when near the bottom edge of the viewport, unlike other controllers. This can cause the menu to get cut off or appear too close to the edge, leading to a poor user experience.

Proposed Solution

Integrate @floating-ui/react in AIMenuController so the menu automatically adjusts its position based on viewport boundaries, matching the behavior of other controllers.

Workarounds Considered

Manually adjusting menu position via custom CSS or inline styles, which is inconsistent across different screen sizes and viewport changes.

Additional Context

The issue is most noticeable on smaller windows or when the menu is triggered near the bottom of the screen, causing partial visibility or overlap.

Screenshot

Image

Activity

  1. changed the title [-]AIMenuController in @blocknote/xl-ai is missing @floating-ui/react implementation causing menu positioning issues[/-] [+]AIMenuController missing @floating-ui/react positioning[/+] on Dec 9, 2025
  2. nperez0111 commented on Dec 9, 2025

    @nperez0111
    Contributor

    Thanks for pointing this out @VihangaN, it looks like we have the flip middleware commented out. I'll get this resolved

  3. VihangaN commented on Jan 19, 2026

    @VihangaN
    Author

    Thanks for fixing this @nperez0111 🙌
    When do you think this can go to a production release ? We’re currently having this issue on our web app as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions