Minor fixes for supporting shrink.
This commit is contained in:
@@ -77,6 +77,7 @@ mindplot.nlayout.EventBusDispatcher = new Class({
|
||||
// Centra topic must not be added twice ...
|
||||
if (node.getId() != 0) {
|
||||
this._layoutManager.addNode(node.getId(), {width:10,height:10}, node.getPosition());
|
||||
this._layoutManager.updateShrinkState(node.getId(), node.areChildrenShrunken());
|
||||
}
|
||||
},
|
||||
|
||||
@@ -85,12 +86,12 @@ mindplot.nlayout.EventBusDispatcher = new Class({
|
||||
},
|
||||
|
||||
_doLayout: function() {
|
||||
(function() {
|
||||
// (function() {
|
||||
this._layoutManager.layout(true);
|
||||
console.log("---------");
|
||||
this._layoutManager.dump();
|
||||
console.log("---------");
|
||||
}).delay(0, this);
|
||||
// }).delay(0, this);
|
||||
}
|
||||
|
||||
});
|
Reference in New Issue
Block a user