Fixed line breaking on right side of line (#4241)

Fixed line breaking on right side of LineComponent due to incorrect variable being used.
This commit is contained in:
AtlassianRS
2018-07-12 03:41:16 -04:00
committed by Tomas Slusny
parent 4e3cec18f0
commit 7a9ff43b40

View File

@@ -105,7 +105,7 @@ public class LineComponent implements LayoutableRenderableEntity
leftLineComponent.render(graphics);
final TextComponent rightLineComponent = new TextComponent();
rightLineComponent.setPosition(new Point(x + leftSmallWidth + rightFullWidth - getLineWidth(rightText, metrics), y));
rightLineComponent.setPosition(new Point(x + leftSmallWidth + rightSmallWidth - getLineWidth(rightText, metrics), y));
rightLineComponent.setText(rightText);
rightLineComponent.setColor(rightColor);
rightLineComponent.render(graphics);