From 708c5d2f75060c17ffc7864c53b6ed7f15df3d7d Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 4 Aug 2021 15:27:06 +0900 Subject: - Fix Edit not working --- .../java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java index 3c223d84..4d1e6fb7 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MToggleButton.java @@ -74,6 +74,11 @@ public class MToggleButton extends MPanel { } } + @Override + public Dimension getPreferredSize() { + return new Dimension(40,15); + } + @Override public void mouseClicked(int absMouseX, int absMouseY, int relMouseX, int relMouseY, int mouseButton) { if (onToggle != null && lastAbsClip.contains(absMouseX, absMouseY) && getTooltipsOpen() == 0) { -- cgit