Samkeene
10/17/2020, 8:09 PMclass Example : View() {
override val root = pane {
prefWidth = 600.0
prefHeight = 500.0
button("click") {
action {
val directoryChooser = DirectoryChooser()
directoryChooser.showDialog(primaryStage)
}
}
}
}
Reproduce: Click the button, move the dialog elsewhere and/or resize it. Close it and click the button again. The dialog will briefly render at the top left before snapping to the last position/size the user set it.
This is using Javafx 15, Kotlin 1.4.10 and the latest 2.0 Snapshot.
I verified this doesn't happen in a plain java javafx app using this example: http://tutorials.jenkov.com/javafx/directorychooser.htmlBogdan
10/18/2020, 11:05 AMSamkeene
10/18/2020, 11:46 AMBogdan
10/18/2020, 11:52 AMBogdan
10/18/2020, 11:57 AMclass Example : View() {
override val root = pane {
prefWidth = 600.0
prefHeight = 500.0
button("click") {
action {
val directoryChooser = DirectoryChooser()
directoryChooser.showDialog(primaryStage)
}
}
}
}
class TApp1 : App(Example::class)
fun main() {
launch<TApp1>()
}
Samkeene
10/18/2020, 12:02 PMSamkeene
10/18/2020, 12:04 PMBogdan
10/18/2020, 12:06 PMBogdan
10/18/2020, 12:07 PMSamkeene
10/18/2020, 12:09 PMBogdan
10/18/2020, 12:09 PMSamkeene
10/18/2020, 12:10 PMBogdan
10/18/2020, 12:11 PMSo you've encountered this problem before? On only windows 10?Yes. Well, I saw something like that for a long time, I don't remember the nuances
Bogdan
10/18/2020, 12:12 PMLaunching through gradle run taskOS ?
Samkeene
10/18/2020, 12:12 PMBogdan
10/18/2020, 12:12 PMBogdan
10/18/2020, 12:14 PMSamkeene
10/18/2020, 12:14 PMSamkeene
10/18/2020, 12:17 PMSamkeene
10/18/2020, 12:18 PMBogdan
10/18/2020, 12:21 PMSamkeene
10/18/2020, 12:22 PMBogdan
10/18/2020, 12:24 PMSamkeene
10/18/2020, 12:24 PMSamkeene
10/19/2020, 10:37 AMdirectoryChooser.initialDirectory = File("src")
will prevent it from happening