diff --git a/BankingJavaFxApp/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/mainwindow/controls/MainMenuBar.kt b/BankingJavaFxApp/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/mainwindow/controls/MainMenuBar.kt index 1531911b..7965ada7 100644 --- a/BankingJavaFxApp/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/mainwindow/controls/MainMenuBar.kt +++ b/BankingJavaFxApp/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/mainwindow/controls/MainMenuBar.kt @@ -6,6 +6,7 @@ import javafx.scene.input.KeyCodeCombination import javafx.scene.input.KeyCombination import net.dankito.banking.ui.model.Account import net.dankito.banking.ui.presenter.MainWindowPresenter +import net.dankito.utils.javafx.ui.extensions.fixedHeight import tornadofx.* @@ -25,8 +26,7 @@ open class MainMenuBar(protected val presenter: MainWindowPresenter) : View() { override val root = menubar { - minHeight = 30.0 - maxHeight = 30.0 + fixedHeight = 30.0 menu(messages["main.window.menu.file"]) { menu(messages["main.window.menu.file.new"]) { diff --git a/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/AddAccountDialog.kt b/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/AddAccountDialog.kt index 2907446a..e4207fa8 100755 --- a/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/AddAccountDialog.kt +++ b/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/AddAccountDialog.kt @@ -152,8 +152,7 @@ open class AddAccountDialog(protected val presenter: MainWindowPresenter) : Wind alignment = Pos.CENTER_RIGHT button(messages["cancel"]) { - minHeight = ButtonHeight - maxHeight = ButtonHeight + fixedHeight = ButtonHeight prefWidth = ButtonWidth isCancelButton = true @@ -166,8 +165,7 @@ open class AddAccountDialog(protected val presenter: MainWindowPresenter) : Wind } add(checkCredentialsButton.apply { - minHeight = ButtonHeight - maxHeight = ButtonHeight + fixedHeight = ButtonHeight prefWidth = ButtonWidth isDefaultButton = true