Skip to content

Editor hover can overflow to top of screen #60534

@gggustafson

Description

@gggustafson

I am using flutter/dart in VS Code on Windows 7 SP1

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.8.2, on Microsoft Windows [Version 6.1.7601], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
[√] VS Code, 64-bit edition (version 1.28.0)
[√] Connected devices (1 available)

• No issues found!

When I hover over a recognized object, a tooltip popup appears. A problem is that if the object over which I hover is close to the top of the screen, the tooltip appears too far up; its top contents are hidden; and I have to reposition the object lower on the screen.

The first image displays the tooltip positioning problem. I have hovered over Column (line 78) where Column is near the top of the screen.

tooltip_too_high

The second image displays the tooltip when Column has been scrolled downward towards the center of the screen.

tooltip_ok

It appears that tooltips require 9 lines. So through simple computations, the tooltip could be placed so that all 9 lines of the tooltip appear near the object it is discussing without clipping.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-hoverEditor mouse hoverwont-fix

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions