Skip to content

When the window is too small IHoverService doesn't take into account width of item #174413

@TylerLeonhardt

Description

@TylerLeonhardt

When my window is too small, the hover is rendered like so:
image

This is not ideal because I would much rather have the hover render below or above the target not overtop of it.

Apparently @sbatten has told me that the ContextViewDelegate handles this case if you have getAnchor return an HTMLElement:
https://github.com/microsoft/vscode/blob/f5af78171cc3a664c261d1e2fca79ab1bbdb7de0/src/vs/base/browser/ui/contextview/contextview.ts#L39

The challenge there is the pointer... as the HoverSerivce likely doesn't know where the thing will end up rendering in the end... and doesn't know which direction to point to.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugworkbench-hoverHover issues in the workbench

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions