aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/panel
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-03-23 21:57:14 +0100
committerRobert Jaros <rjaros@finn.pl>2019-03-23 21:57:14 +0100
commitc56ddc135c7caa9a9b62ced9425544d599e9eb69 (patch)
tree64b1264c9bda8c9df975944a18997a84713449bd /src/main/kotlin/pl/treksoft/kvision/panel
parent514d95a8f3f16b11b406bcfc9028cbf8d662227e (diff)
downloadkvision-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.kt3
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()