https://kotlinlang.org logo
#tornadofx
Title
# tornadofx
c

carlw

08/01/2018, 1:19 PM
@anidotnet @edvin It seems like the problem is with the initial case. Once, the splitter is set, its position is remembered because the View is a Singleton. You're getting the same object when the Window is shown again. This example opts to set the initial position based on settings passed in through the global app.config object. Once this base case is handled, no other event related code is needed. I tried the app.config.double function but had some trouble with that so I have a null check. That's not essential to the task at hand which is getting the initial values established. (Looking more into it now.)