Putting all labels in a tspan.

This will get all of them aligning the same way
This commit is contained in:
Jeff Avallone 2014-12-15 07:54:55 -05:00
parent 66d9b97a6f
commit f8ce2d8f40

View File

@ -48,7 +48,7 @@ export default {
group = this.container.group() group = this.container.group()
.addClass('label'), .addClass('label'),
rect = group.rect(), rect = group.rect(),
text = group.text(0, 0, text); text = group.text(0, 0, _.flatten([text]));
setTimeout(deferred.resolve.bind(deferred, group)); setTimeout(deferred.resolve.bind(deferred, group));
deferred.promise.then(() => { deferred.promise.then(() => {