aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/core/Root.kt4
1 files changed, 2 insertions, 2 deletions
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<Modal> = mutableListOf()
private var rootVnode: VNode = render()
@@ -29,7 +29,7 @@ class Root(id: String, private val fluid: Boolean = true) : Container() {
}
override fun getSnClass(): List<StringBoolPair> {
- val css = if (fluid) "container-fluid" else "container"
+ val css = if (!fixed) "container-fluid" else "container"
return super.getSnClass() + (css to true)
}