linecomponent: Fix items not being positioned correctly (#1219)

* linecomponent: Fix items not being positioned correctly

* Revert "boosts: Separate icons so they aren't stacked (#1211)"

This reverts commit bcc75c1e94.
This commit is contained in:
Owain van Brakel
2019-08-01 18:00:54 +02:00
committed by Kyleeld
parent 320862e96f
commit 9f0b678232
2 changed files with 1 additions and 2 deletions

View File

@@ -3,7 +3,6 @@ package net.runelite.client.plugins.boosts;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import javax.inject.Inject;
@@ -60,7 +59,6 @@ class CombatIconsOverlay extends Overlay
panelComponent.getChildren().clear();
panelComponent.setPreferredSize(new Dimension(28, 0));
panelComponent.setGap(new Point(0, 18));
panelComponent.setWrapping(2);
panelComponent.setBackgroundColor(null);
panelComponent.setBorder(new Rectangle());

View File

@@ -136,6 +136,7 @@ public class LineComponent implements LayoutableRenderableEntity
rightLineComponent.setText(right);
rightLineComponent.setColor(rightColor);
rightLineComponent.render(graphics);
y += metrics.getHeight();
final Dimension dimension = new Dimension(preferredSize.width, y - baseY);
bounds.setLocation(preferredLocation);