Fix hotkey buttons layout

This commit is contained in:
johni0702
2015-10-04 14:45:12 +02:00
parent f925d56ca2
commit c3f058246a

View File

@@ -89,8 +89,8 @@ public class HotkeyButtons implements Extra {
overlay.setLayout(new CustomLayout<GuiReplayOverlay>(overlay.getLayout()) { overlay.setLayout(new CustomLayout<GuiReplayOverlay>(overlay.getLayout()) {
@Override @Override
protected void layout(GuiReplayOverlay container, int width, int height) { protected void layout(GuiReplayOverlay container, int width, int height) {
panelLayout.setColumns((width - 10) / 105); panelLayout.setColumns((width - 10) / 155);
size(panel, panelLayout.calcMinSize(container)); size(panel, panel.getMinSize());
pos(toggleButton, 5, height - 25); pos(toggleButton, 5, height - 25);
pos(panel, 5, y(toggleButton) - 5 - height(panel)); pos(panel, 5, y(toggleButton) - 5 - height(panel));