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:
committed by
Tomas Slusny
parent
4e3cec18f0
commit
7a9ff43b40
@@ -105,7 +105,7 @@ public class LineComponent implements LayoutableRenderableEntity
|
|||||||
leftLineComponent.render(graphics);
|
leftLineComponent.render(graphics);
|
||||||
|
|
||||||
final TextComponent rightLineComponent = new TextComponent();
|
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.setText(rightText);
|
||||||
rightLineComponent.setColor(rightColor);
|
rightLineComponent.setColor(rightColor);
|
||||||
rightLineComponent.render(graphics);
|
rightLineComponent.render(graphics);
|
||||||
|
|||||||
Reference in New Issue
Block a user