mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-08-20 20:40:44 +02:00
Fix font tests.
This commit is contained in:
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
Block a user