diff --git a/mindplot/src/main/javascript/NodeGraph.js b/mindplot/src/main/javascript/NodeGraph.js index 3f34722b..4e8fd1ed 100644 --- a/mindplot/src/main/javascript/NodeGraph.js +++ b/mindplot/src/main/javascript/NodeGraph.js @@ -80,7 +80,7 @@ mindplot.NodeGraph = new Class({ }, setSize : function(size) { - this._model.setSize(size.width, size.height); + this._model.setSize(parseInt(size.width), parseInt(size.height)); }, getModel:function() { diff --git a/mindplot/src/main/javascript/Topic.js b/mindplot/src/main/javascript/Topic.js index a0e52661..0a84a52c 100644 --- a/mindplot/src/main/javascript/Topic.js +++ b/mindplot/src/main/javascript/Topic.js @@ -180,7 +180,7 @@ mindplot.Topic = new Class({ result = new web2d.Line({strokeColor:"#495879",strokeWidth:1, strokeOpacity:1}); result.setSize = function(width, height) { this.size = {width:width, height:height}; - result.setFrom(-1, height); + result.setFrom(0, height); result.setTo(width + 1, height); // Lines will have the same color of the default connection lines... @@ -980,7 +980,7 @@ mindplot.Topic = new Class({ var innerShape = this.getInnerShape(); 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) {