mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
when split panes and replace the pane with new pane axis, switch the flex scale
This commit is contained in:
@@ -661,7 +661,8 @@ class Pane extends Model
|
||||
params.items.push(@copyActiveItem())
|
||||
|
||||
if @parent.orientation isnt orientation
|
||||
@parent.replaceChild(this, new PaneAxis({@container, orientation, children: [this]}))
|
||||
@parent.replaceChild(this, new PaneAxis({@container, orientation, children: [this], @flexScale}))
|
||||
@setFlexScale(1)
|
||||
|
||||
newPane = new @constructor(params)
|
||||
switch side
|
||||
|
||||
Reference in New Issue
Block a user