From 4a62542e4dcc47c337885c74704500b67c15d02d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 30 Sep 2017 01:34:06 +0200 Subject: Change root "fluid" into "not fixed" --- src/main/kotlin/pl/treksoft/kvision/core/Root.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin') diff --git a/src/main/kotlin/pl/treksoft/kvision/core/Root.kt b/src/main/kotlin/pl/treksoft/kvision/core/Root.kt index 21bdca04..82030249 100644 --- a/src/main/kotlin/pl/treksoft/kvision/core/Root.kt +++ b/src/main/kotlin/pl/treksoft/kvision/core/Root.kt @@ -4,7 +4,7 @@ import com.github.snabbdom.VNode import pl.treksoft.kvision.modal.Modal import pl.treksoft.kvision.snabbdom.StringBoolPair -class Root(id: String, private val fluid: Boolean = true) : Container() { +class Root(id: String, private val fixed: Boolean = false) : Container() { private val modals: MutableList = mutableListOf() private var rootVnode: VNode = render() @@ -29,7 +29,7 @@ class Root(id: String, private val fluid: Boolean = true) : Container() { } override fun getSnClass(): List { - val css = if (fluid) "container-fluid" else "container" + val css = if (!fixed) "container-fluid" else "container" return super.getSnClass() + (css to true) } -- cgit