Minor fixes.

This commit is contained in:
Paulo Veiga 2011-09-04 15:26:42 -03:00
parent cc9bf1b908
commit dbb2b2d0c9
3 changed files with 5 additions and 4 deletions

View File

@ -37,7 +37,7 @@ mindplot.CentralTopic = new Class({
},
_getInnerPadding : function() {
return 9;
return 11;
},
getTopicType : function() {

View File

@ -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) {

View File

@ -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 ...