Skip to content

flutter/dart popup tooltips poorly positioned #22912

@gggustafson

Description

@gggustafson

I am using 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 is located 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 appear near the object it is discussing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions