Change default PluginPanel layout to DynamicGrid
This serves as better default for new plugin panels, as it is not forcing same heihgt for all elements, what is undesired behaviour in most of the cases. The current implementations of plugin panels remains unchanged. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -26,7 +26,6 @@ package net.runelite.client.ui;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.GridLayout;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.ScrollPaneConstants;
|
||||
@@ -59,7 +58,7 @@ public abstract class PluginPanel extends JPanel
|
||||
if (wrap)
|
||||
{
|
||||
setBorder(BORDER_PADDING);
|
||||
setLayout(new GridLayout(0, 1, 0, 3));
|
||||
setLayout(new DynamicGridLayout(0, 1, 0, 3));
|
||||
setBackground(ColorScheme.DARK_GRAY_COLOR);
|
||||
|
||||
final JPanel northPanel = new JPanel();
|
||||
|
||||
Reference in New Issue
Block a user