From 6d63af431489516c6d7df23866719f4acd866d46 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sun, 15 Jan 2023 23:51:32 +0900 Subject: - overlay manager - cutting relayout requests (on tight fits) - GUIFeatures -> overlay manager Signed-off-by: syeyoung --- mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java index b3e4b0cf..d49589e3 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java @@ -101,7 +101,7 @@ public class DomElement { // event propagation public void requestRelayout() { - if (layouter.canCutRequest()) { + if (layouter.canCutRequest() && size != null) { layouter.layout(this, new ConstraintBox( size.getWidth(), size.getWidth(), size.getHeight(), size.getHeight() )); -- cgit