atom-color-highlight icon indicating copy to clipboard operation
atom-color-highlight copied to clipboard

Cursor bracket highlights Adjust Color Placement

Open kevincoleman opened this issue 9 years ago • 4 comments

  1. Great idea!
  2. Here’s a short video of the error: http://cl.ly/0O0y22203j3b

kevincoleman avatar Mar 11 '15 20:03 kevincoleman

  1. Thanks! Glad you like it, I initially discovered that feature in FDT in my AS3 days and I just pushed the concept a bit further.
  2. I haven't noticed that behavior with my current setup, so my guess is that there is some styles pollution at some point. Can you try something for me? I would like you to compare the styles applied to the color marker in the two states to see if there's a rule that cause this offset. Also, can you tell me if the offset appears for every color markers in the buffer or only for the one between the bracket? And for the record, I'll need your version of Atom and the plugin's one.

abe33 avatar Mar 11 '15 22:03 abe33

So, having looked at it a bit more, it looks like there’s an weird line at the top of the doc that might be causing the displacement. I would imagine it just moves the point that is considered 0,0 for rendering with CSS positioning. Short video here.

To answer your questions: it seems the styling on the color markers doesn’t change; all color markers move, not just the one most directly associated; Atom v0.186.0, plugin v3.0.8.

kevincoleman avatar Mar 12 '15 17:03 kevincoleman

Oh, interesting, have you tried to inspect this blue line to see where it comes from?

abe33 avatar Mar 12 '15 17:03 abe33

Huh. Good point! Perhaps it’s a theme issue and not a plugin issue. I’ll check its out origin.

kevincoleman avatar Mar 12 '15 17:03 kevincoleman