Set ui size

This commit is contained in:
ryoii 2020-03-21 00:33:56 +08:00
parent c196e36f9b
commit 0d9b14e27b
2 changed files with 4 additions and 4 deletions

View File

@ -5,5 +5,8 @@ import tornadofx.View
class Decorator : View() {
override val root = JFXDecorator(primaryStage, find<PrimaryView>().root)
override val root = JFXDecorator(primaryStage, find<PrimaryView>().root).apply {
prefWidth = 1000.0
prefHeight = 650.0
}
}

View File

@ -21,9 +21,6 @@ class PrimaryView : View() {
override val root = borderpane {
prefWidth = 1000.0
prefHeight = 650.0
left = vbox {
imageview(Image(PrimaryView::class.java.classLoader.getResourceAsStream("logo.png")))