Fixed that DoubleTextfield overlapped with Label when bank account's currency was set e.g. to "EUR" (= a broader value than '€')

This commit is contained in:
dankito 2020-04-30 16:04:24 +02:00
parent f13eb168a5
commit 2aad114d55
1 changed files with 6 additions and 13 deletions

View File

@ -127,7 +127,9 @@ open class TransferMoneyDialog @JvmOverloads constructor(
}
field(messages["transfer.money.dialog.amount.label"]) {
anchorpane {
hbox {
alignment = Pos.CENTER_RIGHT
doubleTextfield(amount, false) {
fixedHeight = TextFieldHeight
fixedWidth = 100.0
@ -139,21 +141,12 @@ open class TransferMoneyDialog @JvmOverloads constructor(
}
}
anchorpaneConstraints {
topAnchor = 0.0
rightAnchor = 20.0
bottomAnchor = 0.0
hboxConstraints {
marginRight = 8.0
}
}
label(selectedBankAccount.value?.currency ?: "") {
anchorpaneConstraints {
topAnchor = 0.0
rightAnchor = 0.0
bottomAnchor = 0.0
}
}
label(selectedBankAccount.value?.currency ?: "")
}
}