aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/panel
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-02-25 00:40:08 +0100
committerRobert Jaros <rjaros@finn.pl>2018-02-25 00:40:08 +0100
commitc64b2c4b1f0c4e0e0d94d202715db4aaa47d9c65 (patch)
tree18bd6105b3b97f1188e1933ab53863517a1183c2 /src/main/kotlin/pl/treksoft/kvision/panel
parent74cf56043c4549f11b5e93caf602e90b8460eb00 (diff)
downloadkvision-c64b2c4b1f0c4e0e0d94d202715db4aaa47d9c65.tar.gz
kvision-c64b2c4b1f0c4e0e0d94d202715db4aaa47d9c65.tar.bz2
kvision-c64b2c4b1f0c4e0e0d94d202715db4aaa47d9c65.zip
Change extension function to properties for dimensions.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/panel')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/panel/FlexPanel.kt8
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