Fixing openning maps bugs

This commit is contained in:
Pablo Luna 2011-01-23 16:55:14 -03:00
parent a4ab2a2e42
commit f5aee9d78f
2 changed files with 12 additions and 9 deletions

View File

@ -81,15 +81,17 @@ mindplot.FixedDistanceBoard.prototype.updateReferencePoint = function()
{
var entry = entries[i];
var upperLimit = entry.getUpperLimit() + yOffset;
var lowerLimit = entry.getLowerLimit() + yOffset;
entry.setUpperLimit(upperLimit);
entry.setLowerLimit(lowerLimit);
if(core.Utils.isDefined(entry)){
var upperLimit = entry.getUpperLimit() + yOffset;
var lowerLimit = entry.getLowerLimit() + yOffset;
entry.setUpperLimit(upperLimit);
entry.setLowerLimit(lowerLimit);
// Fix x position ...
var xPos = this.workoutXBorderDistance();
entry.setXPosition(xPos);
entry.update();
// Fix x position ...
var xPos = this.workoutXBorderDistance();
entry.setXPosition(xPos);
entry.update();
}
}
this._referencePoint = parentPosition.clone();

View File

@ -574,7 +574,8 @@ mindplot.MindmapDesigner.prototype._nodeModelToNodeGraph = function(nodeModel)
for (var i = 0; i < children.length; i++)
{
var child = children[i];
this._nodeModelToNodeGraph(children[i]);
if(core.Utils.isDefined(child))
this._nodeModelToNodeGraph(child);
}
var workspace = this._workspace;