adding multiple line support editor and in nodes

This commit is contained in:
Pablo Luna
2011-04-19 17:01:12 +01:00
parent c804b3715e
commit 5aa6775a85
19 changed files with 398 additions and 32 deletions

View File

@@ -189,10 +189,12 @@ 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;
yOffset = text.getPosition().y + (sizeHeight - 18)/2 + 1;*/
var height = this.options.topic.getSize().height;
var yOffset = (height/2)-this.getSize().height/2;
return {x:offset, y:yOffset};
};