diff --git a/mindplot/src/main/javascript/CentralTopic.js b/mindplot/src/main/javascript/CentralTopic.js index c88166db..1456bda3 100644 --- a/mindplot/src/main/javascript/CentralTopic.js +++ b/mindplot/src/main/javascript/CentralTopic.js @@ -37,7 +37,7 @@ mindplot.CentralTopic = new Class({ }, _getInnerPadding : function() { - return 9; + return 11; }, getTopicType : function() { diff --git a/mindplot/src/main/javascript/MultilineTextEditor.js b/mindplot/src/main/javascript/MultilineTextEditor.js index fa1231e7..fe4031d8 100644 --- a/mindplot/src/main/javascript/MultilineTextEditor.js +++ b/mindplot/src/main/javascript/MultilineTextEditor.js @@ -94,8 +94,6 @@ mindplot.MultilineTextEditor = new Class({ _adjustEditorSize : function() { var textElem = this._getTextareaElem(); - console.log(textElem.value); - var lines = textElem.value.split('\n'); var maxLineLength = 5; lines.forEach(function(line) { diff --git a/mindplot/src/main/javascript/Topic.js b/mindplot/src/main/javascript/Topic.js index 447bbf63..b153f5fd 100644 --- a/mindplot/src/main/javascript/Topic.js +++ b/mindplot/src/main/javascript/Topic.js @@ -153,7 +153,7 @@ mindplot.Topic = new Class({ return this._innerShape; }, - buildShape : function(attributes, type) { + buildShape : function(attributes, type) { var result; if (!$defined(type)) { type = this.getShapeType(); @@ -1140,7 +1140,10 @@ mindplot.Topic = new Class({ (function() { var textShape = this.getTextShape(); var textWidth = textShape.getWidth(); + var textHeight = textShape.getHeight(); + textHeight = textHeight != 0 ? textHeight : 20; + var topicPadding = this._getInnerPadding(); // Adjust the icon size to the size of the text ...