Skip to content

Commit

Permalink
fix: Incorrectly padded requirements when some were hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Sep 20, 2023
1 parent 20ae2dd commit 4976f68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/questhelper/panel/QuestOverviewPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4976f68

Please sign in to comment.