Comments (3)
🤔 You've certainly found an interesting bug! I've tried replicating with a few combinations of these options:
- font (tried both Source Code Pro and Source Code Pro for Powerline)
- font size (just used the default 14px)
- line height (tried both 1.4 and the default 1.5)
I'm using the exact same text and the exact same text spacing as you are and still can't replicate. FWIW, I'm on macOS 10.12.5 (because who knows what's causing this bug now).
I'm willing to take some more detail about your config (e.g., font size and if you're using a non-default language package for LESS) and try to replicate. But unfortunately, I might have to rely on you to figure out the cause. You can launch the Chromium dev tools from in Atom using ctrl + alt + i (or cmd + alt + i on macOS) and use those to check out the CSS like you would on a regular website. Let me know if/what you find!
from cobalt2-atom.
So Inspecting the panel where i'm seeing the error provides some interesting albeit still confusing insight. In terms of the editors DOM it looks like row's 1-6 are rendered in one absolutely positioned container and 7-12 in another. Both positioned using some inline transforms. I suspect there is some sub-pixel rendering error happening here but manipulating the values doesn't seem to have any effect (e.g. I manipulate the transform values in the inspector and nothing appears to change. hitting enter to confirm the change resets the values). I was however able to uncheck the transform on the container for rows 7-12 and watch it disappear from the editor.
Even stranger when opening the inspector it was docked to the right which was squishing the pane quite a bit and the line-height issue seemed to disappear.
¯_(ツ)_/¯
If your feeling curious enough to keep digging I'm happy to keep working on it but I'm not sure its the Syntax theme's fault anymore.
from cobalt2-atom.
@sdempsey OK, I looked at this again given the digging that you did. I was able to see the same 2 types of positioned/transformed divs in my editor (albeit, still without replicating your issue). I'm pretty sure those 2 divs are tiles, which Atom uses for rendering groups of lines.
My wild guess would be that the math was wrong on the 1st and/or 2nd tiles in your case. But that would definitely be an editor issue. So I'll close this issue. Hopefully you don't run into this problem a bunch more.
from cobalt2-atom.
Related Issues (11)
- Style brackets for html syntax HOT 4
- The same problem with brackets under current line bg HOT 2
- highlight hide the text HOT 3
- Support for Statamic Antlers HOT 1
- [question] How to handle inline React HTML? HOT 3
- Not on APM anymore? HOT 4
- Not support Ember handlebars syntax. HOT 5
- Question: JSON Highlighting HOT 2
- Better Syntax for Jade HOT 5
- bracket matcher doesn't show on focussed line HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cobalt2-atom.