]> uap-core.de Git - rssreader.git/commitdiff
save splitpane position
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Mon, 15 Sep 2025 14:16:04 +0000 (16:16 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Mon, 15 Sep 2025 14:16:04 +0000 (16:16 +0200)
rss-application/src/main/kotlin/de/unixwork/rssreader/MainWindow.kt
ui-kotlin/src/main/kotlin/de/unixwork/ui/kotlin/Toplevel.kt

index 31669803e478dbe0fac372c07f45f643262c527b..870ec5fcc4a15a1f6b180620d7c92db3476da077 100644 (file)
@@ -75,7 +75,7 @@ class MainWindow() {
                 }
             }
 
-            hsplitpane(fill = true, initialPosition = 600) {
+            hsplitpane(fill = true, initialPosition = 600, positionProperty = "hsplitpane.pos") {
                 vbox(fill = true) {
                     val model = TableModel()
                     model.addColumn("Title", ColumnType.STRING, -1)
index 0096e63cb72df017588157d6b31983c798627bde..9ab89ba510eee293e0c92d3498bb3056533f3c98 100644 (file)
@@ -573,6 +573,7 @@ class Toplevel(obj: UiObject) {
         margin: Int = -1,
         spacing: Int = -1,
         initialPosition: Int = 0,
+        positionProperty: String? = null,
         value: UiInteger? = null,
         varname: String? = null,
         maxPanes: Int = 0,
@@ -593,6 +594,7 @@ class Toplevel(obj: UiObject) {
             margin = margin,
             spacing = spacing,
             initialPosition = initialPosition,
+            positionProperty = positionProperty,
             value = value,
             varname = varname,
             maxPanes = maxPanes,
@@ -614,6 +616,7 @@ class Toplevel(obj: UiObject) {
         margin: Int = -1,
         spacing: Int = -1,
         initialPosition: Int = 0,
+        positionProperty: String? = null,
         value: UiInteger? = null,
         varname: String? = null,
         maxPanes: Int = 0,
@@ -634,6 +637,7 @@ class Toplevel(obj: UiObject) {
             margin = margin,
             spacing = spacing,
             initialPosition = initialPosition,
+            positionProperty = positionProperty,
             value = value,
             varname = varname,
             maxPanes = maxPanes,