mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-05 07:03:24 +01:00
Fix text children...
This commit is contained in:
parent
4c2d335a2b
commit
6d08df41f0
@ -27,7 +27,7 @@ web2d.peer.svg.TextPeer = new Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
append: function (element) {
|
append: function (element) {
|
||||||
this._native.append(element._native);
|
this._native.appendChild(element._native);
|
||||||
},
|
},
|
||||||
|
|
||||||
setTextAlignment: function (align) {
|
setTextAlignment: function (align) {
|
||||||
@ -54,7 +54,7 @@ web2d.peer.svg.TextPeer = new Class({
|
|||||||
tspan.setAttribute('x', this.getPosition().x);
|
tspan.setAttribute('x', this.getPosition().x);
|
||||||
|
|
||||||
tspan.textContent = line.length == 0 ? " " : line;
|
tspan.textContent = line.length == 0 ? " " : line;
|
||||||
this._native.append(tspan);
|
this._native.appendChild(tspan);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user