aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/Form.kt4
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/panel/ResponsiveGridPanel.kt2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/Form.kt b/src/main/kotlin/pl/treksoft/kvision/form/Form.kt
index 91773bb6..f533473a 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/Form.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/Form.kt
@@ -20,8 +20,8 @@ open class Form<K>(private val panel: FormPanel<K>? = null, private val modelFac
validatorMessage: ((C) -> String?)? = null,
validator: ((C) -> Boolean?)? = null
): Form<K> {
- this.fields.put(key, control)
- this.fieldsParams.put(key, FieldParams(required, validatorMessage, validator))
+ this.fields[key] = control
+ this.fieldsParams[key] = FieldParams(required, validatorMessage, validator)
return this
}
diff --git a/src/main/kotlin/pl/treksoft/kvision/panel/ResponsiveGridPanel.kt b/src/main/kotlin/pl/treksoft/kvision/panel/ResponsiveGridPanel.kt
index 740a208f..0a89de99 100644
--- a/src/main/kotlin/pl/treksoft/kvision/panel/ResponsiveGridPanel.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/panel/ResponsiveGridPanel.kt
@@ -36,7 +36,7 @@ open class ResponsiveGridPanel(
val cCol = if (col < 0) 0 else col
if (row > rows - 1) rows = cRow + 1
if (col > cols - 1) cols = cCol + 1
- map.getOrPut(cRow, { mutableMapOf() }).put(cCol, WidgetParam(child, size, offset))
+ map.getOrPut(cRow, { mutableMapOf() })[cCol] = WidgetParam(child, size, offset)
if (size > 0 || offset > 0) auto = false
refreshRowContainers()
return this