mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Fix connection issues.
This commit is contained in:
parent
cd85390b22
commit
64bebe8d88
@ -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() {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user