Commit dfcaf65b authored by Akikonata's avatar Akikonata

fixed bug

parent 0537e3e0
......@@ -86,7 +86,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
appendside: node.getData( "layout" ).appendside
};
node.setData( "layout", Layout );
contRC.translate( Layout.padding[ 3 ], Layout.padding[ 0 ] + 15 );
contRC.setTransform( new kity.Matrix().translate( Layout.padding[ 3 ], Layout.padding[ 0 ] + 15 ) );
this.update();
},
update: function () {
......@@ -162,7 +162,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
appendside: node.getData( "layout" ).appendside
};
node.setData( "layout", Layout );
contRC.translate( Layout.padding[ 3 ], Layout.padding[ 0 ] + 10 );
contRC.setTransform( new kity.Matrix().translate( Layout.padding[ 3 ], Layout.padding[ 0 ] + 10 ) );
highlightshape.fill( "chocolate" ).translate( -1, 0 );
this.update();
},
......@@ -257,7 +257,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
};
node.setData( "layout", Layout );
node.setData( "text", "Minder Root" );
contRC.translate( Layout.padding[ 3 ], Layout.padding[ 0 ] + 15 );
contRC.setTransform( new kity.Matrix().translate( Layout.padding[ 3 ], Layout.padding[ 0 ] + 15 ) );
this.update();
},
update: function () {
......
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