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) }