mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-05 07:03:24 +01: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);
|
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