atom / one-light-ui

Atom One light UI theme
MIT License
73 stars 62 forks source link

Fix selected item not visible when using arrow up key #132

Closed simurai closed 6 years ago

simurai commented 6 years ago

Description of the Change

This adds the same "hack" as https://github.com/atom/one-dark-ui/pull/252, but to a directory's .header, instead of the directory itself. The reason is because testing if it should be scrolled gets moved to the .header, see tree-view.coffee#L839.

Benefits

Selected directories are visible when using the ⬆️ key.

tree-view

Possible Drawbacks

More hacks.

Applicable Issues

Another follow-up fix for https://github.com/atom/one-dark-ui/pull/246 Fixes https://github.com/atom/tree-view/issues/1245#issuecomment-383839482