diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-03-23 21:57:14 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-03-23 21:57:14 +0100 |
commit | c56ddc135c7caa9a9b62ced9425544d599e9eb69 (patch) | |
tree | 64b1264c9bda8c9df975944a18997a84713449bd /src/main/kotlin/pl/treksoft/kvision/panel | |
parent | 514d95a8f3f16b11b406bcfc9028cbf8d662227e (diff) | |
download | kvision-c56ddc135c7caa9a9b62ced9425544d599e9eb69.tar.gz kvision-c56ddc135c7caa9a9b62ced9425544d599e9eb69.tar.bz2 kvision-c56ddc135c7caa9a9b62ced9425544d599e9eb69.zip |
Code style fixes.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/panel')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/panel/Root.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/panel/Root.kt b/src/main/kotlin/pl/treksoft/kvision/panel/Root.kt index e069dd4c..1a90f7fc 100644 --- a/src/main/kotlin/pl/treksoft/kvision/panel/Root.kt +++ b/src/main/kotlin/pl/treksoft/kvision/panel/Root.kt @@ -44,6 +44,7 @@ import pl.treksoft.kvision.utils.snOpt * otherwise it's rendered with "container" class (default is false) * @param init an initializer extension function */ +@Suppress("TooManyFunctions") class Root(id: String, private val fixed: Boolean = false, init: (Root.() -> Unit)? = null) : SimplePanel() { private val styles: MutableList<Style> = mutableListOf() private val modals: MutableList<Modal> = mutableListOf() @@ -97,7 +98,7 @@ class Root(id: String, private val fixed: Boolean = false, init: (Root.() -> Uni private fun stylesVNodes(): Array<VNode> { val visibleStyles = styles.filter { it.visible } return if (visibleStyles.isNotEmpty()) { - val stylesDesc = visibleStyles.map { it.generateStyle() }.joinToString("\n") + val stylesDesc = visibleStyles.joinToString("\n") { it.generateStyle() } arrayOf(h("style", arrayOf(stylesDesc))) } else { arrayOf() |