From 86ef14b60085c499eee2eed7ac6f443402ff7a44 Mon Sep 17 00:00:00 2001 From: liuxiong332 Date: Tue, 17 Mar 2015 15:48:32 +0800 Subject: [PATCH] when split panes and replace the pane with new pane axis, switch the flex scale --- src/pane.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pane.coffee b/src/pane.coffee index 2b198c569..7e8374efe 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -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