Replaced minHeight / maxHeight combo by fixedHeight

This commit is contained in:
dankl 2020-01-12 00:44:52 +01:00 committed by dankito
parent fde728b72e
commit 0e2406c9b7
2 changed files with 4 additions and 6 deletions

View File

@ -6,6 +6,7 @@ import javafx.scene.input.KeyCodeCombination
import javafx.scene.input.KeyCombination import javafx.scene.input.KeyCombination
import net.dankito.banking.ui.model.Account import net.dankito.banking.ui.model.Account
import net.dankito.banking.ui.presenter.MainWindowPresenter import net.dankito.banking.ui.presenter.MainWindowPresenter
import net.dankito.utils.javafx.ui.extensions.fixedHeight
import tornadofx.* import tornadofx.*
@ -25,8 +26,7 @@ open class MainMenuBar(protected val presenter: MainWindowPresenter) : View() {
override val root = override val root =
menubar { menubar {
minHeight = 30.0 fixedHeight = 30.0
maxHeight = 30.0
menu(messages["main.window.menu.file"]) { menu(messages["main.window.menu.file"]) {
menu(messages["main.window.menu.file.new"]) { menu(messages["main.window.menu.file.new"]) {

View File

@ -152,8 +152,7 @@ open class AddAccountDialog(protected val presenter: MainWindowPresenter) : Wind
alignment = Pos.CENTER_RIGHT alignment = Pos.CENTER_RIGHT
button(messages["cancel"]) { button(messages["cancel"]) {
minHeight = ButtonHeight fixedHeight = ButtonHeight
maxHeight = ButtonHeight
prefWidth = ButtonWidth prefWidth = ButtonWidth
isCancelButton = true isCancelButton = true
@ -166,8 +165,7 @@ open class AddAccountDialog(protected val presenter: MainWindowPresenter) : Wind
} }
add(checkCredentialsButton.apply { add(checkCredentialsButton.apply {
minHeight = ButtonHeight fixedHeight = ButtonHeight
maxHeight = ButtonHeight
prefWidth = ButtonWidth prefWidth = ButtonWidth
isDefaultButton = true isDefaultButton = true