Skip to content

Commit

Permalink
Fixed yOffset not being used to change y position of text
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Saunders authored and Michael Saunders committed Nov 29, 2018
1 parent 358c5da commit ea2142b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ module.exports.Component = registerComponent('text', {

// Position and scale mesh to apply layout.
mesh.position.x = x * textScale + data.xOffset;
mesh.position.y = y * textScale;
mesh.position.y = y * textScale + data.yOffset;
// Place text slightly in front to avoid Z-fighting.
mesh.position.z = data.zOffset;
mesh.scale.set(textScale, -1 * textScale, textScale);
Expand Down

0 comments on commit ea2142b

Please sign in to comment.