Skip to content

Commit

Permalink
Fixed exp tracker pop-up in the progress bar
Browse files Browse the repository at this point in the history
Fixes runelite#2989

The interaction to open the pop-up menu contains "reset" and "open
online tracker" wasn't accessible if the user clicked on the progress
bar. What I did was add the component pop menu to the progress bar too.

Grouped these two attributions and moved them lower on the constructor.
  • Loading branch information
psikoi committed May 22, 2018
1 parent b999118 commit b85ca41
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ class XpInfoBox extends JPanel
popupMenu.setBorder(new EmptyBorder(5, 5, 5, 5));
popupMenu.add(openXpTracker);
popupMenu.add(reset);
container.setComponentPopupMenu(popupMenu);

JLabel skillIcon = new JLabel(new ImageIcon(iconManager.getSkillImage(skill)));
skillIcon.setHorizontalAlignment(SwingConstants.CENTER);
Expand Down Expand Up @@ -153,6 +152,9 @@ class XpInfoBox extends JPanel
container.add(headerPanel, BorderLayout.NORTH);
container.add(progressWrapper, BorderLayout.SOUTH);

container.setComponentPopupMenu(popupMenu);
progressBar.setComponentPopupMenu(popupMenu);

add(container, BorderLayout.NORTH);
}

Expand Down

0 comments on commit b85ca41

Please sign in to comment.