mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Tighten up search for parent pane
The introduction of the .flexbox-redraw-hack required the query to be loosened, but I went too far. We don't want to return a pane for mini editors that happen to be nested on another view that's inside a pane.
This commit is contained in:
@@ -1073,7 +1073,7 @@ class EditorView extends View
|
||||
#
|
||||
# Returns a {Pane}.
|
||||
getPane: ->
|
||||
@parents('.pane').view()
|
||||
@parent('.item-views').parents('.pane').view()
|
||||
|
||||
remove: (selector, keepData) ->
|
||||
return super if keepData or @removed
|
||||
|
||||
Reference in New Issue
Block a user