From 59ea00dabceeddf01fec7bf87ec548d7beedd7cc Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 26 May 2023 23:23:03 +0200 Subject: Fix bug in WFixedPanel and use WScrollPanel + WBox for config --- src/main/kotlin/moe/nea/firmament/gui/WFixedPanel.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/kotlin/moe/nea/firmament/gui/WFixedPanel.kt') diff --git a/src/main/kotlin/moe/nea/firmament/gui/WFixedPanel.kt b/src/main/kotlin/moe/nea/firmament/gui/WFixedPanel.kt index 4ada681..0c5eb05 100644 --- a/src/main/kotlin/moe/nea/firmament/gui/WFixedPanel.kt +++ b/src/main/kotlin/moe/nea/firmament/gui/WFixedPanel.kt @@ -8,6 +8,7 @@ class WFixedPanel() : WPanel() { set(value) { children.clear() setSize(0, 0) + value.parent = this children.add(value) } get() = children.single() -- cgit