Merge pull request #7725 from deathbeam/vertical-glue-sidebar
Push sidebar non-tab buttons to bottom
This commit is contained in:
@@ -30,6 +30,7 @@ import java.awt.Component;
|
|||||||
import java.awt.Dimension;
|
import java.awt.Dimension;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.TreeMap;
|
import java.util.TreeMap;
|
||||||
|
import javax.swing.Box;
|
||||||
import javax.swing.JToolBar;
|
import javax.swing.JToolBar;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -57,7 +58,6 @@ public class ClientPluginToolbar extends JToolBar
|
|||||||
setMinimumSize(new Dimension(TOOLBAR_WIDTH, TOOLBAR_HEIGHT));
|
setMinimumSize(new Dimension(TOOLBAR_WIDTH, TOOLBAR_HEIGHT));
|
||||||
setPreferredSize(new Dimension(TOOLBAR_WIDTH, TOOLBAR_HEIGHT));
|
setPreferredSize(new Dimension(TOOLBAR_WIDTH, TOOLBAR_HEIGHT));
|
||||||
setMaximumSize(new Dimension(TOOLBAR_WIDTH, Integer.MAX_VALUE));
|
setMaximumSize(new Dimension(TOOLBAR_WIDTH, Integer.MAX_VALUE));
|
||||||
addSeparator();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void addComponent(final NavigationButton button, final Component c)
|
void addComponent(final NavigationButton button, final Component c)
|
||||||
@@ -86,6 +86,7 @@ public class ClientPluginToolbar extends JToolBar
|
|||||||
if (!entry.getKey().isTab() && !isDelimited)
|
if (!entry.getKey().isTab() && !isDelimited)
|
||||||
{
|
{
|
||||||
isDelimited = true;
|
isDelimited = true;
|
||||||
|
add(Box.createVerticalGlue());
|
||||||
addSeparator();
|
addSeparator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user