Replaced minHeight / maxHeight combo by fixedHeight
This commit is contained in:
parent
fde728b72e
commit
0e2406c9b7
|
@ -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"]) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue