mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
Allow for panes to exist without a rootView (for testing purposes)
This commit is contained in:
committed by
probablycorey
parent
5b58751a14
commit
68b05a5d8d
@@ -42,7 +42,7 @@ class Pane extends View
|
||||
|
||||
pane = new Pane(view)
|
||||
this[side](pane)
|
||||
rootView.adjustPaneDimensions()
|
||||
rootView?.adjustPaneDimensions()
|
||||
view.focus?()
|
||||
pane
|
||||
|
||||
@@ -54,7 +54,7 @@ class Pane extends View
|
||||
if parentAxis.children().length == 1
|
||||
sibling = parentAxis.children().detach()
|
||||
parentAxis.replaceWith(sibling)
|
||||
rootView.adjustPaneDimensions()
|
||||
rootView?.adjustPaneDimensions()
|
||||
|
||||
buildPaneAxis: (axis) ->
|
||||
switch axis
|
||||
|
||||
Reference in New Issue
Block a user