From 2aad114d55298d5107ebd04a175ace2dfb530854 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 30 Apr 2020 16:04:24 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20that=20DoubleTextfield=20overlapped=20w?= =?UTF-8?q?ith=20Label=20when=20bank=20account's=20currency=20was=20set=20?= =?UTF-8?q?e.g.=20to=20"EUR"=20(=3D=20a=20broader=20value=20than=20'?= =?UTF-8?q?=E2=82=AC')?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cashtransfer/TransferMoneyDialog.kt | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/cashtransfer/TransferMoneyDialog.kt b/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/cashtransfer/TransferMoneyDialog.kt index 2000e611..781fa51e 100644 --- a/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/cashtransfer/TransferMoneyDialog.kt +++ b/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/cashtransfer/TransferMoneyDialog.kt @@ -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 ?: "€") } }