Fix font tests.

This commit is contained in:
Paulo Gustavo Veiga 2014-03-04 21:24:03 -03:00
parent 6d08df41f0
commit cb2d63de6a
2 changed files with 3 additions and 6 deletions

View File

@ -69,10 +69,7 @@ web2d.peer.svg.TextPeer = new Class({
this._native.setAttribute('x', x); this._native.setAttribute('x', x);
// tspan must be positioned manually. // tspan must be positioned manually.
this._native.getElements('tspan').forEach(function (span) { $(this._native).children('tspan').attr('x', x);
span.setAttribute('x', x);
});
}, },
getPosition: function () { getPosition: function () {

View File

@ -63,7 +63,7 @@
wText.setColor('red'); wText.setColor('red');
}); });
overflowWorkspace.addItAsChildTo(document.id(elemId)); overflowWorkspace.addItAsChildTo($("#"+elemId));
} }
function alignments(text, family, elemId) { function alignments(text, family, elemId) {
@ -83,7 +83,7 @@
wText.setTextAlignment(align); wText.setTextAlignment(align);
}); });
overflowWorkspace.addItAsChildTo(document.id(elemId)); overflowWorkspace.addItAsChildTo($("#"+elemId));
} }
function initialize() { function initialize() {