Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip/Information hovers too small and cannot be resized #38663

Closed
kdvolder opened this issue Nov 18, 2017 · 9 comments
Closed

Tooltip/Information hovers too small and cannot be resized #38663

kdvolder opened this issue Nov 18, 2017 · 9 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) editor-hover Editor mouse hover
Milestone

Comments

@kdvolder
Copy link

kdvolder commented Nov 18, 2017

$ code --version
1.18.0
dcee2202709a4f223185514b9275aa4229841aa7
  • OS Version: Ubuntu 14.04.5 LTS

Steps to Reproduce:

  1. Install the recommended extension pack for editing .java files
  2. Open a Java project and hover over a method or class that has fairly large documentations.

The hover window that appears to show the information tends to be a little 'tight' to comfortably read the information. This might be allright if, as a user I could resize it somehow. (e.g. by dragging the edges or corners). But it seems there is no way to resize it (or am I missing something?).

Reproduces without extensions: Yes (if you can find something else to produce 'large' documentation hovers).

@roblourens
Copy link
Member

Can you post a screenshot?

@ramya-rao-a ramya-rao-a added info-needed Issue requires more information from poster editor-hover Editor mouse hover labels Nov 20, 2017
@vscodebot vscodebot bot closed this as completed Nov 30, 2017
@vscodebot
Copy link

vscodebot bot commented Nov 30, 2017

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@kdvolder
Copy link
Author

kdvolder commented Dec 1, 2017

screenshot-big-hover-vscode

Screenshot attached. No this isn't 'terrible' its just somewhat annoying. Especially since when mobing the mouse around the hover area to get to the scrollbar the popup tends to close (but maybe that's another problem).

The point is, it feels like I should be able to resize the popup to give it more space, if I wanted to. It's certainly possible to read as is, if you don't mind scrolling up and down.

I beleave that's a perfectly reasonable request, from a user point of view, its rather constraining if the size of the popup is fixed. (In Eclipse, for example these popups can be resized and moved by the user and the IDE remembers this preference for the next time too).

@kdvolder
Copy link
Author

kdvolder commented Dec 1, 2017

Can you please consider re-opening this? And sorry for not responding sooner, I somehow missed the earlier message requesting a screenshot.

@joaomoreno joaomoreno added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Dec 1, 2017
@joaomoreno joaomoreno added this to the Backlog milestone Dec 1, 2017
@joaomoreno joaomoreno reopened this Dec 1, 2017
@kdvolder
Copy link
Author

I've got another screenshot which shows a somewhat more problematic example. There's an ascii table in the given JavaDoc, and its too wide to fit in the available tooltip space (though there is plenty enough space on my actual screen... I just can't use it, which is a bit frustrating :-)

can-it-be-bigger-please

@RoarkeRandall
Copy link

RoarkeRandall commented May 2, 2018

super annoying considering I'm on a 4k monitor
super annoying

@ShenHongFei
Copy link
Contributor

ShenHongFei commented Jul 17, 2018

Here is a workaround by hacking the file "C:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\workbench.main.css"

    /* suggest-widget size */
        .monaco-editor .suggest-widget.docs-side {
            width: 1600px;
        }
        .monaco-editor .suggest-widget.docs-side > .details {
            width: 70%;
            max-height: 800px !important;
        }
        .monaco-editor .suggest-widget.docs-side > .tree {
            width: 30%;
            float: left;
        }
        
    /* parameter-hints-widget */
        .editor-widget.parameter-hints-widget.visible {
            max-height: 800px !important;
        }
        .monaco-editor .parameter-hints-widget > .wrapper {
            max-width: 1600px;
        }

    /* editor-hover */
        .monaco-editor-hover .monaco-editor-hover-content {
            max-width: 1600px;
        }

Simply append the code above after the original content of file, and restart VSCode. (Title bar may alert a warning message "Not Supported" and hacked changes would be overridden by updating VSCode)

0062

@rebornix
Copy link
Member

Let's track this issue in #14165

@rebornix rebornix added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 21, 2018
@vscodebot
Copy link

vscodebot bot commented Sep 21, 2018

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Sep 21, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) editor-hover Editor mouse hover
Projects
None yet
Development

No branches or pull requests

7 participants