-
Notifications
You must be signed in to change notification settings - Fork 130
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
Height calculation is off? #192
Comments
I have the following in my @ui-font-size: 14px;
atom-workspace {
font-family: 'Helvetica Neue', sans-serif;
font-size: @ui-font-size;
} I suspect that with the change in how the minimap is attached to the editor view, this style may now affect the size of the minimap text (which does appear larger) and is therefore throwing off the size calculations. |
It shouldn't, minimap is now canvas based, and so is unaffected by font styles. By the look of it it's like the previous version stretching bug on resize window. Have you enabled the |
Oh... looks like something retina-related. Sadly I haven't a retina display available for testing, however the code for drawing on the canvas is roughly the same as before. I'll try to find a computer with a retina screen to test that. |
Can you tell me what is the size of the canvas inside the |
Ok, it should be a quick fix, the canvas must have a |
🍻 Thanks for your help! |
If you have some time to try a thing, does the canvas get the correct scale if you specify a width/height in its style attributes with values of half the canvas size? |
You should use px unit for the width and height in the style attribute ;) |
😊 Yeah, that works. I always say that CSS isn't my thing! 😆 |
The change of size to fix the scaling issue or the use of px for width & height? |
Both 😀
|
Thanks! Confirmed on my machine 👍 |
Atom v0.167.0-a9c0553 on Mac OS X 10.10.1 using 27" Retina iMac
I also have
*.editor.scrollPastEnd
enabled.Apologies in advance for the huge image:
The text was updated successfully, but these errors were encountered: