Skip to content

Configure placement of type tooltip. #1462

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

Closed
trusktr opened this issue Nov 5, 2018 · 6 comments
Closed

Configure placement of type tooltip. #1462

trusktr opened this issue Nov 5, 2018 · 6 comments

Comments

@trusktr
Copy link

trusktr commented Nov 5, 2018

The type tooltip appears on top of error tooltips:

screen shot 2018-11-05 at 11 20 59 am

It would be nice to have it appear on top of the mouse instead of below, or to make it appear below an existing error tip, or perhaps to make the error tip appear above the line.

@trusktr
Copy link
Author

trusktr commented Nov 5, 2018

A workaround for now that works most of the time but not always, is to render the error tooltip lower with a CSS transform:

#linter-tooltip {
	transform: translateY(40px);
}

screen shot 2018-11-05 at 11 32 45 am

but sometimes it fails when the type tip is too tall:

screen shot 2018-11-05 at 11 33 11 am

@trusktr trusktr changed the title COnfigure placement of type tooltip. Configure placement of type tooltip. Nov 7, 2018
@trusktr
Copy link
Author

trusktr commented Nov 7, 2018

I also placed made this suggestion for linter-ui-default: steelbrain/linter-ui-default#524

@lierdakil
Copy link
Collaborator

This is basically a duplicate of #1442. There is no good resolution except for using atom-ide-ui for both type and error tooltips (then atom-ide-ui can sort those out). Which is in the works currently. I'll make a note to make tooltip position a bit more configurable.

@trusktr
Copy link
Author

trusktr commented Nov 10, 2018

Check it out, I came up with some CSS to flip the linter-ui tooltip onto the top of the line so it doesn't conflict with the atom-typescript tip:

screen shot 2018-11-10 at 2 24 19 pm

screen shot 2018-11-10 at 2 33 27 pm

@lierdakil
Copy link
Collaborator

Tooltip position (top/bottom) is configurable in v12.7.0. Also, Atom-IDE tooltips are available as an option, so when using Atom-IDE exclusively, you will get proper tooltip spacing.

@trusktr
Copy link
Author

trusktr commented Dec 28, 2018

@lierdakil nice, thanks for the feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants