Coder Social home page Coder Social logo

Comments (3)

rosston avatar rosston commented on August 12, 2024

🤔 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.

sdempsey avatar sdempsey commented on August 12, 2024

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.

screen shot 2017-06-21 at 1 43 35 pm
screen shot 2017-06-21 at 1 43 57 pm

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.

screen shot 2017-06-21 at 1 49 41 pm

¯_(ツ)_/¯

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.

rosston avatar rosston commented on August 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.