aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/panel/ResponsiveGridPanel.kt
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-01-17 19:32:58 +0100
committerRobert Jaros <rjaros@finn.pl>2018-01-17 19:32:58 +0100
commitbca362ddd192de9fc96711677274b0207c7afdb7 (patch)
tree74adb627f85d51169d081c45995c690c7d280c99 /src/main/kotlin/pl/treksoft/kvision/panel/ResponsiveGridPanel.kt
parent31c9d3c4121107974a8419752aa7face5c96f821 (diff)
downloadkvision-bca362ddd192de9fc96711677274b0207c7afdb7.tar.gz
kvision-bca362ddd192de9fc96711677274b0207c7afdb7.tar.bz2
kvision-bca362ddd192de9fc96711677274b0207c7afdb7.zip
Style fixes
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/panel/ResponsiveGridPanel.kt')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/panel/ResponsiveGridPanel.kt2
1 files changed, 1 insertions, 1 deletions
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