From eafebd6a1080e963a8976472461c8a9ebb49fd1b Mon Sep 17 00:00:00 2001 From: dankl Date: Sun, 26 Jan 2020 13:14:49 +0100 Subject: [PATCH] Fixed that updateButton keeps its height --- .../ui/javafx/controls/AccountTransactionsControlView.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/controls/AccountTransactionsControlView.kt b/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/controls/AccountTransactionsControlView.kt index e459b258..c97e3daa 100644 --- a/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/controls/AccountTransactionsControlView.kt +++ b/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/controls/AccountTransactionsControlView.kt @@ -19,6 +19,10 @@ open class AccountTransactionsControlView( protected val balance: SimpleStringProperty ) : View() { + companion object { + const val PanelHeight = 36.0 + } + protected val supportsRetrievingAccountTransactions = SimpleBooleanProperty(false) @@ -26,7 +30,7 @@ open class AccountTransactionsControlView( override val root = borderpane { - fixedHeight = 36.0 + fixedHeight = PanelHeight left = label(messages["account.transactions.control.view.search.label"]) { borderpaneConstraints { @@ -68,6 +72,8 @@ open class AccountTransactionsControlView( } updateButton { + fixedHeight = PanelHeight + enableWhen(supportsRetrievingAccountTransactions) action { updateAccountTransactions(this) }