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

@@ -444,16 +444,15 @@ mindplot.Designer = new Class({
_nodeModelToNodeGraph : function(nodeModel, isVisible) {
$assert(nodeModel, "Node model can not be null");
var children = nodeModel.getChildren().slice();
var nodeGraph = this._buildNodeGraph(nodeModel);
if (isVisible)
if (isVisible) {
nodeGraph.setVisibility(isVisible);
}
var children = nodeModel.getChildren();
var workspace = this._workspace;
workspace.appendChild(nodeGraph);
this._workspace.appendChild(nodeGraph);
for (var i = 0; i < children.length; i++) {
var child = children[i];
if ($defined(child))