mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Minor fixes.
This commit is contained in:
parent
cc9bf1b908
commit
dbb2b2d0c9
@ -37,7 +37,7 @@ mindplot.CentralTopic = new Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_getInnerPadding : function() {
|
_getInnerPadding : function() {
|
||||||
return 9;
|
return 11;
|
||||||
},
|
},
|
||||||
|
|
||||||
getTopicType : function() {
|
getTopicType : function() {
|
||||||
|
@ -94,8 +94,6 @@ mindplot.MultilineTextEditor = new Class({
|
|||||||
_adjustEditorSize : function() {
|
_adjustEditorSize : function() {
|
||||||
|
|
||||||
var textElem = this._getTextareaElem();
|
var textElem = this._getTextareaElem();
|
||||||
console.log(textElem.value);
|
|
||||||
|
|
||||||
var lines = textElem.value.split('\n');
|
var lines = textElem.value.split('\n');
|
||||||
var maxLineLength = 5;
|
var maxLineLength = 5;
|
||||||
lines.forEach(function(line) {
|
lines.forEach(function(line) {
|
||||||
|
@ -1140,7 +1140,10 @@ mindplot.Topic = new Class({
|
|||||||
(function() {
|
(function() {
|
||||||
var textShape = this.getTextShape();
|
var textShape = this.getTextShape();
|
||||||
var textWidth = textShape.getWidth();
|
var textWidth = textShape.getWidth();
|
||||||
|
|
||||||
var textHeight = textShape.getHeight();
|
var textHeight = textShape.getHeight();
|
||||||
|
textHeight = textHeight != 0 ? textHeight : 20;
|
||||||
|
|
||||||
var topicPadding = this._getInnerPadding();
|
var topicPadding = this._getInnerPadding();
|
||||||
|
|
||||||
// Adjust the icon size to the size of the text ...
|
// Adjust the icon size to the size of the text ...
|
||||||
|
Loading…
Reference in New Issue
Block a user