diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-03-22 20:21:13 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-03-22 20:21:13 +0100 |
commit | ed98521a25e276310562db34a5ccee341559e71e (patch) | |
tree | 2f0691af3f41a5d6fb19757b5a4427675ca6cef9 | |
parent | 41fbf09c2b2f24e18a3277efa183fdb3f140956a (diff) | |
download | kvision-ed98521a25e276310562db34a5ccee341559e71e.tar.gz kvision-ed98521a25e276310562db34a5ccee341559e71e.tar.bz2 kvision-ed98521a25e276310562db34a5ccee341559e71e.zip |
Fixed removing child from container.
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/panel/SimplePanel.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/panel/SimplePanel.kt b/src/main/kotlin/pl/treksoft/kvision/panel/SimplePanel.kt index 916cbba3..2f702fad 100644 --- a/src/main/kotlin/pl/treksoft/kvision/panel/SimplePanel.kt +++ b/src/main/kotlin/pl/treksoft/kvision/panel/SimplePanel.kt @@ -61,6 +61,7 @@ open class SimplePanel(classes: Set<String> = setOf(), init: (SimplePanel.() -> */ protected fun addInternal(child: Component): SimplePanel { children.add(child) + child.parent?.remove(child) child.parent = this refresh() return this |