Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Fix blank bug - #883

Merged
kevinsawicki merged 5 commits into
masterfrom
ks-blank-bug
Sep 25, 2013
Merged

kevinsawicki merged 5 commits into
masterfrom
ks-blank-bug

Conversation

@kevinsawicki

Copy link
Copy Markdown
Contributor

⬛◾⬛
◾⬛◾
⬛◾⬛

Fix the regression where the editor sometimes goes blank introduced in #852

Basic idea is that now that the hidden input has an offset it needs to be reset to 0,0 on blur so the next focus event doesn't cause the editor to scroll.

Steps to reproduce:

  1. Open atom with no editors open
  2. Open a large file (something the size of jquery.js or editor.coffee works consistently)
  3. Click the tab icon
  4. Editor goes blank

@benogle

benogle commented Sep 25, 2013

Copy link
Copy Markdown
Contributor

Does this fix atom/find-and-replace#20??

@kevinsawicki

Copy link
Copy Markdown
Contributor Author

@benogle not sure

@probablycorey

Copy link
Copy Markdown

+:100: I want it now!

Previously the input could be offscreen depend on the scroll
position of the editor and this would cause a scroll event to
occur when the input gained focused causing the editor rendering
to go out of sync.
This allows it to not scroll on the next focus but still be reset
to the right location on the next cursor moved event
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants