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

position tool tips correctly #1020

Merged
merged 2 commits into from
Apr 22, 2021
Merged

position tool tips correctly #1020

merged 2 commits into from
Apr 22, 2021

Conversation

eddebaby
Copy link
Contributor

Fixes #1003

Tool Tips are positioned according to the mouse X and Y coordinate. A y-offset of 86 was added, which was correct for 640x400.

This fixed 86 has now been replaced with a value based on the units_per_pixel value. This means that the tool tip is now in the correct position at all resolutions.

Instead of this:
image

we now have this:
image

Tool Tips are positioned according to the mouse X and Y coordinate. A y-offset of 86 was added, which was correct for 640x400.

This fixed 86 has now been replaced with a value based on the units_per_pixel value. This means that the tool tip is now in the correct position at all resolutions.
@eddebaby eddebaby requested a review from Loobinex April 22, 2021 17:24
@eddebaby eddebaby marked this pull request as draft April 22, 2021 17:32
in calculating y_offset, now accounts correctly for rounding
@eddebaby eddebaby marked this pull request as ready for review April 22, 2021 18:04
Copy link
Member

@Loobinex Loobinex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks fine to me, and I tested it successfully.

@Loobinex Loobinex merged commit 8dc16e3 into dkfans:master Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tooltip placed over units in hand in high resolution
2 participants