Commit 346a490f authored by Akikonata's avatar Akikonata

undo bug fix

parent 02cb6e78
Subproject commit d4e00b314db4116a92583114bcb67ff9a3c4d48d Subproject commit 256dce28fb1e574b18f0dd084f7503cbc25e2a80
...@@ -41,9 +41,13 @@ KityMinder.registerModule( "LayoutModule", function () { ...@@ -41,9 +41,13 @@ KityMinder.registerModule( "LayoutModule", function () {
initStyle: function () { initStyle: function () {
var curStyle = this.getCurrentStyle(); var curStyle = this.getCurrentStyle();
this._rc.remove(); this._rc.remove();
var transform = this._rc.transform;
this._rc = new kity.Group(); this._rc = new kity.Group();
this._paper.addShape( this._rc ); this._paper.addShape( this._rc );
this._rc.transform = transform;
this._rc._applyTransform();
var _root = this.getRoot(); var _root = this.getRoot();
_root.preTraverse( function ( n ) { _root.preTraverse( function ( n ) {
n.clearLayout(); n.clearLayout();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment