diff options
Diffstat (limited to 'src/main/kotlin/pl')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/core/Component.kt | 2 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/core/WidgetWrapper.kt | 3 |
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 |