mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-12 18:13:24 +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);
|
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 () {
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user