From 4976f687071d1d03fecdb6fb1ae71fbddc12db0b Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Wed, 20 Sep 2023 21:20:39 +0200 Subject: [PATCH] fix: Incorrectly padded requirements when some were hidden --- src/main/java/com/questhelper/panel/QuestOverviewPanel.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/questhelper/panel/QuestOverviewPanel.java b/src/main/java/com/questhelper/panel/QuestOverviewPanel.java index 4c655492c3..8c16b1290a 100644 --- a/src/main/java/com/questhelper/panel/QuestOverviewPanel.java +++ b/src/main/java/com/questhelper/panel/QuestOverviewPanel.java @@ -43,7 +43,6 @@ import net.runelite.api.Client; import net.runelite.api.Item; import net.runelite.client.ui.ColorScheme; -import net.runelite.client.ui.DynamicGridLayout; import net.runelite.client.ui.PluginPanel; import static net.runelite.client.ui.PluginPanel.PANEL_WIDTH; import net.runelite.client.util.LinkBrowser; @@ -264,7 +263,7 @@ private JPanel generateRequirementPanel(JPanel listPanel, JPanel headerPanel, St questItemReqs.setMinimumSize(new Dimension(1, headerPanel.getPreferredSize().height)); headerPanel.add(questItemReqs, BorderLayout.NORTH); - listPanel.setLayout(new DynamicGridLayout(0, 1, 0, 1)); + listPanel.setLayout(new DynamicPaddedGridLayout(0, 1, 0, 1)); listPanel.setBorder(new EmptyBorder(10, 5, 10, 5)); requirementPanel.add(headerPanel, BorderLayout.NORTH);