From 01c1d306b8df6f552949b04e88829f6730e537c7 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 3 Apr 2018 17:21:38 +0200 Subject: Fix window resize and z-index. --- src/main/kotlin/pl/treksoft/kvision/window/Window.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/pl/treksoft/kvision/window') diff --git a/src/main/kotlin/pl/treksoft/kvision/window/Window.kt b/src/main/kotlin/pl/treksoft/kvision/window/Window.kt index 4a7e6ded..2b1aabb7 100644 --- a/src/main/kotlin/pl/treksoft/kvision/window/Window.kt +++ b/src/main/kotlin/pl/treksoft/kvision/window/Window.kt @@ -38,7 +38,7 @@ import pl.treksoft.kvision.modal.CloseIcon import pl.treksoft.kvision.panel.SimplePanel import pl.treksoft.kvision.utils.px -internal const val DEFAULT_Z_INDEX = 1000 +internal const val DEFAULT_Z_INDEX = 900 internal const val WINDOW_HEADER_HEIGHT = 40 internal const val WINDOW_CONTENT_MARGIN_BOTTOM = 11 @@ -238,8 +238,10 @@ open class Window( if (eid == id) { val intWidth = (getElementJQuery()?.width()?.toInt() ?: 0) + 2 val intHeight = (getElementJQuery()?.height()?.toInt() ?: 0) + 2 + isResizable = false width = intWidth.px height = intHeight.px + isResizable = true content.width = (intWidth - 2).px content.height = (intHeight - WINDOW_HEADER_HEIGHT - WINDOW_CONTENT_MARGIN_BOTTOM - 1 - 2).px } -- cgit