diff options
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/panel')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/panel/FlexPanel.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/panel/FlexPanel.kt b/src/main/kotlin/pl/treksoft/kvision/panel/FlexPanel.kt index 3bb42d53..4591a747 100644 --- a/src/main/kotlin/pl/treksoft/kvision/panel/FlexPanel.kt +++ b/src/main/kotlin/pl/treksoft/kvision/panel/FlexPanel.kt @@ -162,10 +162,10 @@ open class FlexPanel( wrapper.marginLeft = null spacing?.let { when (direction) { - FLEXDIR.COLUMN -> wrapper.marginBottom = it.px() - FLEXDIR.ROWREV -> wrapper.marginLeft = it.px() - FLEXDIR.COLUMNREV -> wrapper.marginTop = it.px() - else -> wrapper.marginRight = it.px() + FLEXDIR.COLUMN -> wrapper.marginBottom = it.px + FLEXDIR.ROWREV -> wrapper.marginLeft = it.px + FLEXDIR.COLUMNREV -> wrapper.marginTop = it.px + else -> wrapper.marginRight = it.px } } return wrapper |