when split panes and replace the pane with new pane axis, switch the flex scale

This commit is contained in:
liuxiong332
2015-03-17 15:48:32 +08:00
parent c05a410d11
commit 86ef14b600

View File

@@ -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