plugin-panel: stick plugin hub button to bottom of plugin list

This commit is contained in:
dekvall
2020-10-26 21:56:36 +01:00
committed by Adam
parent 922c5e3421
commit 2357fa27d7

View File

@@ -179,11 +179,11 @@ class PluginListPanel extends PluginPanel
externalPluginButton.setBorder(new EmptyBorder(5, 5, 5, 5));
externalPluginButton.setLayout(new BorderLayout(0, BORDER_OFFSET));
externalPluginButton.addActionListener(l -> muxer.pushState(pluginHubPanelProvider.get()));
add(externalPluginButton, BorderLayout.SOUTH);
JPanel northPanel = new FixedWidthPanel();
northPanel.setLayout(new BorderLayout());
northPanel.add(mainPanel, BorderLayout.NORTH);
northPanel.add(externalPluginButton, BorderLayout.SOUTH);
scrollPane = new JScrollPane(northPanel);
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);