aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/window
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-03-08 13:39:23 +0100
committerRobert Jaros <rjaros@finn.pl>2018-03-08 13:39:23 +0100
commite838207213484b3d6383d90a13fe8e36a4fb467d (patch)
treea80f9fbaa51c8235a633d4c9301abc64e626ff73 /src/main/kotlin/pl/treksoft/kvision/window
parentb4a797930cc1a023c18f247fb0e2698ba14dad1f (diff)
downloadkvision-e838207213484b3d6383d90a13fe8e36a4fb467d.tar.gz
kvision-e838207213484b3d6383d90a13fe8e36a4fb467d.tar.bz2
kvision-e838207213484b3d6383d90a13fe8e36a4fb467d.zip
Style fixes
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/window')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/window/Window.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/window/Window.kt b/src/main/kotlin/pl/treksoft/kvision/window/Window.kt
index b85c584b..1225a1c2 100644
--- a/src/main/kotlin/pl/treksoft/kvision/window/Window.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/window/Window.kt
@@ -127,10 +127,13 @@ open class Window(
init {
id = "kv_window_$counter"
+ @Suppress("LeakingThis")
position = Position.ABSOLUTE
+ @Suppress("LeakingThis")
overflow = Overflow.HIDDEN
@Suppress("LeakingThis")
width = contentWidth
+ @Suppress("LeakingThis")
zIndex = ++zIndexCounter
closeIcon.visible = closeButton
closeIcon.setEventListener {
@@ -145,6 +148,7 @@ open class Window(
addInternal(content)
checkIsDraggable()
if (isResizable) {
+ @Suppress("LeakingThis")
resize = Resize.BOTH
content.marginBottom = WINDOW_CONTENT_MARGIN_BOTTOM.px
}