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

Feature/tooltips offscreen #1412

Merged
merged 5 commits into from
Oct 14, 2023
Merged

Conversation

lawson89
Copy link
Contributor

Tooltips go off-screen #1224

show up and to the left by calculating width of tooltip window

Copy link
Collaborator

@rdbende rdbende left a comment

Choose a reason for hiding this comment

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

Thanks, I like your simple solution! It works well, but I'll wait for @Akuli to have a look at it, I don't dare to merge it just like that 🙃

porcupine/utils.py Outdated Show resolved Hide resolved
@rdbende rdbende linked an issue Oct 13, 2023 that may be closed by this pull request
use update_idletasks() instead of update()
@rdbende
Copy link
Collaborator

rdbende commented Oct 13, 2023

btw, the Windows build failure is not related.

@Akuli
Copy link
Owner

Akuli commented Oct 13, 2023

This works, but the tooltip looks weird to me when it appears around the middle of the screen.

2023-10-13-225630_1680x1050_scrot

Maybe center it horizontally (self.mousex - tipwindow.winfo_width()/2) if it fits, and otherwise do like in this PR now?

lawson89 and others added 2 commits October 13, 2023 17:50
center tooltip unless tip would go off the screen and then use what screen space is available
Copy link
Owner

@Akuli Akuli left a comment

Choose a reason for hiding this comment

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

Thanks!

@Akuli Akuli merged commit 5cb0a87 into Akuli:main Oct 14, 2023
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.

Tooltips go off-screen
3 participants