Grid layout must always have at least one column
This commit is contained in:
@@ -89,7 +89,7 @@ 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) / 155);
|
panelLayout.setColumns(Math.max(1, (width - 10) / 155));
|
||||||
size(panel, panel.getMinSize());
|
size(panel, panel.getMinSize());
|
||||||
|
|
||||||
pos(toggleButton, 5, height - 25);
|
pos(toggleButton, 5, height - 25);
|
||||||
|
|||||||
Reference in New Issue
Block a user