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

Updated documentation in __init__.py #809

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jtranquilli
Copy link

This "bug" comes up a few times a year, where users find that their calculated coordinates seem to be no-sensical on their actual screen sizes. This is just due to higher pixel density on retina display macs. This has an easy work around of dividing x and y coordinates by 2. I explored ways to automate checks for whether retina display was present but didn't want to add any additional dependencies to the project or risk breaking projects that use the existing work around. I've just added a warning to the doc-string of the size() function in innit.py warning users that if they are using a retina display mac book, they can expect a pixel density of 2x2, meaning they will most likely have to divide x and y coordinates by 2 to get their desired position. This way there is an official notice in the project so that people don't keep posting it as an issue here.

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.

1 participant