Fix connection issues.

This commit is contained in:
Paulo Veiga 2011-10-10 19:31:10 -03:00
parent cd85390b22
commit 64bebe8d88
2 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ mindplot.NodeGraph = new Class({
}, },
setSize : function(size) { setSize : function(size) {
this._model.setSize(size.width, size.height); this._model.setSize(parseInt(size.width), parseInt(size.height));
}, },
getModel:function() { getModel:function() {

View File

@ -180,7 +180,7 @@ mindplot.Topic = new Class({
result = new web2d.Line({strokeColor:"#495879",strokeWidth:1, strokeOpacity:1}); result = new web2d.Line({strokeColor:"#495879",strokeWidth:1, strokeOpacity:1});
result.setSize = function(width, height) { result.setSize = function(width, height) {
this.size = {width:width, height:height}; this.size = {width:width, height:height};
result.setFrom(-1, height); result.setFrom(0, height);
result.setTo(width + 1, height); result.setTo(width + 1, height);
// Lines will have the same color of the default connection lines... // Lines will have the same color of the default connection lines...
@ -980,7 +980,7 @@ mindplot.Topic = new Class({
var innerShape = this.getInnerShape(); var innerShape = this.getInnerShape();
outerShape.setSize(size.width + 4, size.height + 6); outerShape.setSize(size.width + 4, size.height + 6);
innerShape.setSize(size.width, size.height); innerShape.setSize(parseInt(size.width), parseInt(size.height));
}, },
setSize : function(size, force, updatePosition) { setSize : function(size, force, updatePosition) {