nylki/pen-paper-coffee-syntax

Strange positioning of h1 in new document

markoa opened this issue · 6 comments

Hi, I really like your theme. Here's a strange thing I found:

  • Open Atom.
  • New file.
  • Write a header.

screen shot 2014-10-14 at 08 01 53

Thats a known problem to me, and really not a nice one visually. It's due to the increased fontsize. If I were able to set a margin for the whole editor view on top, so that lines would begin further down, all should be fine. (Another idea would be to increase the height of lines that include markdown headers. However I was no able to identify those lines just via CSS rules. I can identify the font/content of a line, but not the overlying line itself, that I would like to set a differnt height to.)

If you or anybody knows a solution, I'd be glad to hear it.
In the meantime, I recommend starting at line 2 when editing markdown with a header at the first line.

I haven't noticed this behaviour anymore. I am closing this issue. Please comment if it still happens to you!

I am reopening it, still not fixed (just checked on OS X).
Help would be appreciated.

@nylki I may have a fix for that. It puts a bit of padding on the scroll-view (i.e. the editing area) and gutter. I haven't found a situation where that causes a problem, but could do with some more testing perhaps.

@braver Thx for the commits! I will close this issue when I have tested your changes with different fonts, font sizes and different setups for a while.

Having modified the changes by @braver, the current solution is now to create 0.5em space on top, so the first line is dynamically spaced, no matter what the font size etc. is, see commit: 0598b6f