Skip to content

Dioxus context menu viewport bug off the screen #172

@Fess23

Description

@Fess23

Problem

My Dioxus context menu (dx components add context_menu) is always displayed at the bottom-right, and it goes off the screen.
Steps To Reproduce

Steps to reproduce the behavior:

  • Edit the css.

Expected behavior

I would like the menu to appear adaptively based on the cursor position so it stays within the viewport.

Screenshots

Image Image

Environment:

  • Dioxus version: 0.7.1
  • Rust version: rustc 1.90.0 (1159e78c4 2025-09-14)
  • OS info: windows 11 (25H2 26200.7309)
  • App platform: desktop

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions