Revert "adding multiple line support editor and in nodes"

This reverts commit 5aa6775a85.
This commit is contained in:
Pablo Luna
2011-04-20 09:30:45 +01:00
parent fff2db0ab8
commit b678344991
19 changed files with 32 additions and 398 deletions

View File

@@ -189,12 +189,10 @@ mindplot.IconGroup.prototype.updateIconGroupPosition = function() {
mindplot.IconGroup.prototype._calculateOffsets = function() {
var offset = this.options.topic.getOffset();
/*var text = this.options.topic.getTextShape();
var text = this.options.topic.getTextShape();
var sizeHeight = text.getHtmlFontSize();
var yOffset = offset;
var shape = this.options.topic.getShapeType();
yOffset = text.getPosition().y + (sizeHeight - 18)/2 + 1;*/
var height = this.options.topic.getSize().height;
var yOffset = (height/2)-this.getSize().height/2;
yOffset = text.getPosition().y + (sizeHeight - 18)/2 + 1;
return {x:offset, y:yOffset};
};