DioxusLabs / DioxusLabs/dioxus-components

Dioxus context menu viewport bug off the screen

Open
#172 0 comments 0 reactions 0 assignees View on GitHub
bug primitives
Dominant language
Rust
Stars
343
Forks
82
PR merge metrics
No merged PRs in 30d

Description

**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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.