diff options
author | Robert Jaros <rjaros@finn.pl> | 2017-10-07 02:19:47 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2017-10-07 02:19:47 +0200 |
commit | 381f872a4daab133ed53e85526281b6e29873007 (patch) | |
tree | ed0a39ef917ccdb43b8ed0ed9b616eaf4f2bf9bf /src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt | |
parent | a61948c5b79d2fb3402e14ee69a9a8f2a18c02b4 (diff) | |
download | kvision-381f872a4daab133ed53e85526281b6e29873007.tar.gz kvision-381f872a4daab133ed53e85526281b6e29873007.tar.bz2 kvision-381f872a4daab133ed53e85526281b6e29873007.zip |
New grid component (old renamed to ResponsiveGridPanel). Flex, HPanel, VPanel and DockPanel components. Cache for components attributes.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt b/src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt index 0022023b..817ecaa0 100644 --- a/src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt +++ b/src/main/kotlin/pl/treksoft/kvision/panel/TabPanel.kt @@ -47,8 +47,8 @@ open class TabPanel : Container(setOf()) { } open fun removeTab(index: Int): TabPanel { - nav.removeAt(index) - content.removeAt(index) + nav.remove(nav.children[index]) + content.remove(content.children[index]) activeIndex = content.activeIndex return this } |