Skip to content

Commit

Permalink
allow focusing of detached children still.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Jul 31, 2015
1 parent 2246938 commit fe1f470
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/widgets/screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -1623,11 +1623,9 @@ Screen.prototype._focus = function(self, old) {
if (el.scrollable) break;
}

if (el && el.detached) return;

// If we're in a scrollable element,
// automatically scroll to the focused element.
if (el) {
if (el && !el.detached) {
// NOTE: This is different from the other "visible" values - it needs the
// visible height of the scrolling element itself, not the element within
// it.
Expand Down

0 comments on commit fe1f470

Please sign in to comment.