diff options
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/panel/StackPanel.kt')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/panel/StackPanel.kt | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/panel/StackPanel.kt b/src/main/kotlin/pl/treksoft/kvision/panel/StackPanel.kt index 372098b8..c5162c0a 100644 --- a/src/main/kotlin/pl/treksoft/kvision/panel/StackPanel.kt +++ b/src/main/kotlin/pl/treksoft/kvision/panel/StackPanel.kt @@ -14,7 +14,7 @@ open class StackPanel(private val activateLast: Boolean = true, override fun childrenVNodes(): Array<VNode> { return if (activeIndex >= 0 && activeIndex < children.size) { - arrayOf(children[activeIndex].render()) + arrayOf(children[activeIndex].renderVNode()) } else { arrayOf() } @@ -40,12 +40,6 @@ open class StackPanel(private val activateLast: Boolean = true, return this } - override fun removeAt(index: Int): Container { - super.removeAt(index) - if (activeIndex > children.size - 1) activeIndex = children.size - 1 - return this - } - override fun removeAll(): Container { super.removeAll() if (activeIndex > children.size - 1) activeIndex = children.size - 1 |