We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd7aa6 commit 5966d67Copy full SHA for 5966d67
src/main/java/com/cleanroommc/modularui/widget/SingleChildWidget.java
@@ -29,12 +29,15 @@ public W child(IWidget child) {
29
if (child == this || this.child == child) {
30
return getThis();
31
}
32
-
+ if (this.child != null) {
33
+ this.child.dispose();
34
+ }
35
this.child = child;
- if (isValid()) {
36
+ updateList();
37
+ if (child != null && isValid()) {
38
child.initialise(this, true);
39
+ scheduleResize();
40
- updateList();
41
42
43
0 commit comments