Fix font tests.
parent
6d08df41f0
commit
cb2d63de6a
|
@ -69,10 +69,7 @@ web2d.peer.svg.TextPeer = new Class({
|
|||
this._native.setAttribute('x', x);
|
||||
|
||||
// tspan must be positioned manually.
|
||||
this._native.getElements('tspan').forEach(function (span) {
|
||||
span.setAttribute('x', x);
|
||||
});
|
||||
|
||||
$(this._native).children('tspan').attr('x', x);
|
||||
},
|
||||
|
||||
getPosition: function () {
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
wText.setColor('red');
|
||||
});
|
||||
|
||||
overflowWorkspace.addItAsChildTo(document.id(elemId));
|
||||
overflowWorkspace.addItAsChildTo($("#"+elemId));
|
||||
}
|
||||
|
||||
function alignments(text, family, elemId) {
|
||||
|
@ -83,7 +83,7 @@
|
|||
wText.setTextAlignment(align);
|
||||
});
|
||||
|
||||
overflowWorkspace.addItAsChildTo(document.id(elemId));
|
||||
overflowWorkspace.addItAsChildTo($("#"+elemId));
|
||||
}
|
||||
|
||||
function initialize() {
|
||||
|
|
Loading…
Reference in New Issue