Commit 3a6e745e authored by techird's avatar techird

fix connect update issue

parent fa3cf5b5
...@@ -254,6 +254,16 @@ kity.extendClass(Minder, { ...@@ -254,6 +254,16 @@ kity.extendClass(Minder, {
matrix: matrix matrix: matrix
}); });
} }
} else {
// 可能位置没有改变,但是相关布局变量变了
me.fire('layoutapply', {
node: node,
matrix: matrix
});
me.fire('layoutfinish', {
node: node,
matrix: matrix
});
} }
for (var i = 0; i < node.children.length; i++) { for (var i = 0; i < node.children.length; i++) {
......
...@@ -177,7 +177,7 @@ KityMinder.registerModule('Expand', function() { ...@@ -177,7 +177,7 @@ KityMinder.registerModule('Expand', function() {
var pathData = ['M', 1.5 - this.radius, 0, 'L', this.radius - 1.5, 0]; var pathData = ['M', 1.5 - this.radius, 0, 'L', this.radius - 1.5, 0];
if (state == STATE_COLLAPSE) { if (state == STATE_COLLAPSE) {
pathData.push(['M', 0, 1.5 - this.radius, 'L', 0, this.radius - 1.5]); pathData.push(['M', 0, 1.5 - this.radius, 'L', 0, this.radius - 1.5]);
} }
this.sign.setPathData(pathData); this.sign.setPathData(pathData);
} }
}); });
......
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