Minor fixes for supporting shrink.

This commit is contained in:
Paulo Veiga
2012-01-12 00:49:18 -03:00
parent ef2902d724
commit aee1dfbff9
5 changed files with 36 additions and 34 deletions

View File

@@ -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);
}
});