mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
Fix font tests.
This commit is contained in:
parent
d9cd33c487
commit
1580d20e31
@ -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