Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

The placement of text in the find box seems too high #20

Closed

Description

@nathansobo

screen shot 2013-09-24 at 2 01 07 pm

Activity

  1. nathansobo commented on Sep 24, 2013

    @nathansobo
    ContributorAuthor

    Weird... I just noticed this goes away after closing it and re-opening.

  2. benogle commented on Sep 24, 2013

    @benogle
    Contributor

    I noticed this too. It's all mini editors. I tried to fix it with css, but
    something in JS seems to be compensating for it. I'm not sure exactly
    what's causing it. The scroll pane under editor is 2px too high.

    On Tue, Sep 24, 2013 at 1:03 PM, Nathan Sobo [email protected]:

    [image: screen shot 2013-09-24 at 2 01 07 pm]https://f.cloud.github.com/assets/1789/1203469/4ded9ecc-2554-11e3-8f91-ef9145b5baaf.png

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/20
    .

  3. benogle commented on Sep 24, 2013

    @benogle
    Contributor

    I think it has something to do with DisplayBuffer::screenPositionForBufferPosition?

    When you have the issue, look at the scroll-view element in the inspector. It looks to be 2px too high (though, I cant for the life of me figure out why, flexbox?). In css (static/editor.less), I can give it a top of something ridic like 10px. It now looks way too low in the mini editor. Reload, open the find and replace box, and the editor has the same issue. WTF. Looking at the markup, the cursor and the hiddenInput both now have compensated for my scroll-view top of 10px with their own top: 10px.

    It also fixes itself. Try this

    • Open atom without the find and replace box open.
    • cmd+f to open it, type something in the box
    • hit esc to close it.
    • open again with cmd+f
    • fixed! It's all in the right place.
  4. benogle commented on Sep 26, 2013

    @benogle
    Contributor

    Moved to atom/atom#887

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions