Context menu top portion cut off/clipped in file explorer when browser feature is open
Context menu top portion cut off/clipped in file explorer
Description
When right-clicking on files in the file explorer while Cursor IDE's browser feature is open, the context menu appears with its top portion cut off or clipped. This makes the top menu items inaccessible or hidden beyond the visible screen area.
Steps to Reproduce
Note: This bug only occurs when Cursor IDE's browser feature is open.
- Open Cursor IDE's browser feature (the built-in browser window)
- Open the file explorer in Cursor IDE
- Right-click on any file (e.g.,
.env.local) - Observe that the context menu appears with the top portion cut off
Expected Behavior
The context menu should be fully visible with all menu items accessible. When the Cursor browser feature is open, the context menu should be able to hover over/on top of the browser window, allowing all menu items to be visible and accessible. The menu positioning should account for the browser window and allow it to appear above other windows when necessary.
Actual Behavior
The context menu's top portion is cut off/clipped, making it impossible to see or access the top menu items. The visible menu items start with "Add File to New Cursor Chat" and continue downward, but the items above this are not visible.
Visible Menu Items (from top)
- Add File to New Cursor Chat
- Open Timeline
- Cut (
Ctrl+X) - Copy (
Ctrl+C) - Download...
- Copy Path (
Shift+Alt+C) - Copy Relative Path (
Ctrl+M Ctrl+Shift+C) - Rename... (
F2) - Delete Permanently (
Delete)
Note: There appear to be menu items above "Add File to New Cursor Chat" that are cut off and not visible.
Environment
- OS: Linux (WSL2) - 6.6.87.2-microsoft-standard-WSL2
- Editor/IDE: Cursor IDE
- Cursor IDE Version: 2.0.54
-
Cursor IDE Hash:
7a31bffd467aa2d9adfda69076eb924e9062cb20 - Architecture: x64
- Theme: Dark theme
Screenshots
Additional Context
This appears to be a UI positioning/layout issue in Cursor IDE where the context menu calculation incorrectly restricts the menu to the IDE's viewport boundaries when the browser feature is open. The menu positioning logic should allow the context menu to appear over/on top of the browser window, but instead it's being clipped at the top edge of the IDE viewport. The menu should be able to hover over other windows (such as the browser feature) to ensure all menu items remain fully visible and accessible.