Fixed that fields overlapped vertically
This commit is contained in:
parent
f8bb4fd933
commit
33a701b3ca
|
@ -31,6 +31,7 @@ open class TransferMoneyDialog @JvmOverloads constructor(
|
||||||
) : Window() {
|
) : Window() {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
private val FieldHeight = 40.0
|
||||||
private val TextFieldHeight = 32.0
|
private val TextFieldHeight = 32.0
|
||||||
|
|
||||||
private val ButtonHeight = 40.0
|
private val ButtonHeight = 40.0
|
||||||
|
@ -104,12 +105,16 @@ open class TransferMoneyDialog @JvmOverloads constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
field(messages["transfer.money.dialog.remittee.name.label"]) {
|
field(messages["transfer.money.dialog.remittee.name.label"]) {
|
||||||
|
fixedHeight = FieldHeight
|
||||||
|
|
||||||
textfield(this@TransferMoneyDialog.remitteeName) {
|
textfield(this@TransferMoneyDialog.remitteeName) {
|
||||||
fixedHeight = TextFieldHeight
|
fixedHeight = TextFieldHeight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
field(messages["transfer.money.dialog.remittee.iban.label"]) {
|
field(messages["transfer.money.dialog.remittee.iban.label"]) {
|
||||||
|
fixedHeight = FieldHeight
|
||||||
|
|
||||||
textfield(remitteeIban) {
|
textfield(remitteeIban) {
|
||||||
fixedHeight = TextFieldHeight
|
fixedHeight = TextFieldHeight
|
||||||
|
|
||||||
|
@ -124,11 +129,7 @@ open class TransferMoneyDialog @JvmOverloads constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
field(messages["transfer.money.dialog.remittee.bank.label"]) {
|
field(messages["transfer.money.dialog.remittee.bank.label"]) {
|
||||||
fixedHeight = TextFieldHeight + 18.0
|
fixedHeight = FieldHeight
|
||||||
|
|
||||||
hboxConstraints {
|
|
||||||
marginTopBottom(8.0)
|
|
||||||
}
|
|
||||||
|
|
||||||
textfield(remitteeBankName) {
|
textfield(remitteeBankName) {
|
||||||
fixedHeight = TextFieldHeight
|
fixedHeight = TextFieldHeight
|
||||||
|
@ -140,7 +141,7 @@ open class TransferMoneyDialog @JvmOverloads constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
field(messages["transfer.money.dialog.remittee.bic.label"]) {
|
field(messages["transfer.money.dialog.remittee.bic.label"]) {
|
||||||
fixedHeight = TextFieldHeight + 18.0
|
fixedHeight = FieldHeight
|
||||||
|
|
||||||
textfield(remitteeBic) {
|
textfield(remitteeBic) {
|
||||||
fixedHeight = TextFieldHeight
|
fixedHeight = TextFieldHeight
|
||||||
|
@ -152,6 +153,8 @@ open class TransferMoneyDialog @JvmOverloads constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
field(messages["transfer.money.dialog.amount.label"]) {
|
field(messages["transfer.money.dialog.amount.label"]) {
|
||||||
|
fixedHeight = FieldHeight
|
||||||
|
|
||||||
hbox {
|
hbox {
|
||||||
alignment = Pos.CENTER_RIGHT
|
alignment = Pos.CENTER_RIGHT
|
||||||
|
|
||||||
|
@ -176,13 +179,15 @@ open class TransferMoneyDialog @JvmOverloads constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
field(messages["transfer.money.dialog.usage.label"]) {
|
field(messages["transfer.money.dialog.usage.label"]) {
|
||||||
|
fixedHeight = FieldHeight
|
||||||
|
|
||||||
textfield(usage) {
|
textfield(usage) {
|
||||||
fixedHeight = TextFieldHeight
|
fixedHeight = TextFieldHeight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
field {
|
field {
|
||||||
alignment = Pos.CENTER_LEFT
|
fixedHeight = FieldHeight
|
||||||
|
|
||||||
checkbox(messages["transfer.money.dialog.instant.payment.label"], instantPayment) {
|
checkbox(messages["transfer.money.dialog.instant.payment.label"], instantPayment) {
|
||||||
fixedHeight = TextFieldHeight
|
fixedHeight = TextFieldHeight
|
||||||
|
|
Loading…
Reference in New Issue