Skip to content

Submenus in TreeView overflow and pierce through when horizontal space is insufficient #263546

@yiliang114

Description

@yiliang114

When the horizontal width of the TreeView is too narrow, its submenus overflow and visually "pierce" through the container boundaries, causing layout issues.

Image

Version: 1.103.2
Commit: 6f17636
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Embedder: vscode.dev

Steps to Reproduce:

  1. Open a workspace with a folder that contains deeply nested paths or files with long names.
  2. Right-click an item several levels deep in the Explorer TreeView.
  3. Observe that the context menu extends past the right edge of the VS Code window;

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugmenusMenu items and widget issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions