aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-03-22 20:22:11 +0100
committerRobert Jaros <rjaros@finn.pl>2018-03-22 20:22:11 +0100
commit6e89e35577a5425bb6d584ec19d99f3e3856db37 (patch)
tree39c988f6720ea8cc7110faf34a99fe5e3d5b7d1e /src
parented98521a25e276310562db34a5ccee341559e71e (diff)
downloadkvision-6e89e35577a5425bb6d584ec19d99f3e3856db37.tar.gz
kvision-6e89e35577a5425bb6d584ec19d99f3e3856db37.tar.bz2
kvision-6e89e35577a5425bb6d584ec19d99f3e3856db37.zip
Change type of parent property.
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/core/Component.kt2
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/core/WidgetWrapper.kt3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/core/Component.kt b/src/main/kotlin/pl/treksoft/kvision/core/Component.kt
index 7125536a..659f8e1a 100644
--- a/src/main/kotlin/pl/treksoft/kvision/core/Component.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/core/Component.kt
@@ -33,7 +33,7 @@ interface Component {
/**
* Parent of the current component.
*/
- var parent: Component?
+ var parent: Container?
/**
* Visibility state of the current component.
*/
diff --git a/src/main/kotlin/pl/treksoft/kvision/core/WidgetWrapper.kt b/src/main/kotlin/pl/treksoft/kvision/core/WidgetWrapper.kt
index e5d9ebbd..739cb99e 100644
--- a/src/main/kotlin/pl/treksoft/kvision/core/WidgetWrapper.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/core/WidgetWrapper.kt
@@ -22,6 +22,7 @@
package pl.treksoft.kvision.core
import com.github.snabbdom.VNode
+import pl.treksoft.kvision.panel.SimplePanel
import kotlin.Unit
/**
@@ -31,7 +32,7 @@ import kotlin.Unit
* @param wrapped wrapped component
* @param classes Set of CSS class names
*/
-open class WidgetWrapper(internal var wrapped: Component?, classes: Set<String> = setOf()) : Widget(classes) {
+open class WidgetWrapper(internal var wrapped: Component?, classes: Set<String> = setOf()) : SimplePanel(classes) {
override var visible
get() = wrapped?.visible == true